View Single Post
  #6 (permalink)  
Old July 28th, 2006, 12:51 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Right. That explains a lot. You need to tell the calendar what method is responsible for handling the event:

<asp:Calendar ID="Calendar1" runat="server"
   OnDayRender="Calendar1_DayRender"></asp:Calendar>

Otherwise, your Calendar1_DayRender method is just a simple method, and not an event handler for the DayRender event....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote