Solved

Adding images in Calendar Control

Posted on 2006-11-13
1
403 Views
Last Modified: 2012-06-21
Hello,

I have a calendar control in ASP.net as shown below. How do I add images to PreviousMonth and NextMonth's. Currently it shows just arrows.

    <asp:Calendar id="Calendar3" runat="server" SelectionMode="Day" BackColor="#FFFFCC" Width="180px"
 DayNameFormat="FirstLetter" ForeColor="#000000" Height="180px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#FFCC66" >
<SelectorStyle BackColor="#FFCC66"></SelectorStyle>
<NextPrevStyle Font-Size="9pt"  ForeColor="#FFFFCC"></NextPrevStyle>
<DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC"></TitleStyle>
<OtherMonthDayStyle ForeColor="#CC9966" BackColor="#EAEAEA"></OtherMonthDayStyle>
</asp:Calendar>
    </div>
0
Comment
Question by:rowmark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
mmarinov earned 250 total points
ID: 17931285
Hi rowmark,

here is a trickky way
define style

    <style type="text/css">
    .NextStyle
    {
    width: 100px;
    height: 14px;
    background-image: url(nav.gif);
    background-repeat: no-repeat;
    background-position: 0 0;
    padding: 0 0 0 88px;
    text-decoration: none;
    }
    </style>

and then assign it to the next
<NextPrevStyle CssClass="NextStyle"></NextPrevStyle>

Cheers!
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question