Represents the method that handles the Calendar.DayRender event of the System.Web.UI.WebControls.Calendar control.
- sender
- Documentation for this section has not yet been entered.
- e
- Documentation for this section has not yet been entered.
Although data binding is not supported for the System.Web.UI.WebControls.Calendar control, it is possible to modify the content and formatting of the individual date cells. Before the System.Web.UI.WebControls.Calendar control is displayed on a Web page, it creates and assembles the components that make up the control. The Calendar.DayRender event is raised when each date cell in the System.Web.UI.WebControls.Calendar control is created. You can control the contents and formatting of a date cell when it is created by providing code in the event handler for the Calendar.DayRender event. For more information on customizing the contents of a date cell, see Calendar.OnDayRender(TableCell, CalendarDay).
When you create a System.Web.UI.WebControls.DayRenderEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see Events and Delegates.