Configuring the calendar

criticalzell

New member
Joined
May 17, 2006
Messages
2
Programming Experience
1-3
Hi, I have configure my own calendar that displays holidays is the days affected by creating a datasource, then bind in the calendar. This is the example

<HRSControls:HolidayCalendar ID="hlcHolidaysCalendar" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="100%" ShowGridLines="True" Width="100%">
<HolidayStyle BackColor="#5291c3"/>
<DayStyle Height="75px" HorizontalAlign="Left" VerticalAlign="Top" />
<TodayDayStyle BackColor="#FFCC66" ForeColor="White" Height="75px" />
<SelectorStyle BackColor="#FFCC66" />
<OtherMonthDayStyle ForeColor="#CC9966" Height="75px" />
<NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"/>
<DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1" />
<TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" />
<HolidayTemplate><br />
<asp:HyperLink ID="hypHoliday" runat="server"
Text='<%# DataBinder.Eval(Container, "Item.HOLIDAYNAME")%>'
NavigateUrl='<%#"Holiday.aspx?CID=" & DataBinder.Eval(Container, "Item.CALENDAR_ID")%>'></asp:HyperLink>
<HolidayStyle BackColor="#5291c3" />
</HolidayTemplate>
</HRSControls:HolidayCalendar>




As you would see. I define my own property which is <HolidayTemplate> so when I bind this with a data of Holidays, I was able to display the holidays for affected day.s Now my problem is, how can I change the back color of the holiday. The <holiday style> is not working
 
Back
Top