Solved

Adding images in Calendar Control

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

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

630 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