Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding images in Calendar Control

Posted on 2006-11-13
1
Medium Priority
?
410 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 750 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
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.…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

876 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