Solved

Adding images in Calendar Control

Posted on 2006-11-13
1
399 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now