System.Web.UI.WebControls Namespace Calendar Class
Occurs when the user clicks on a day, week, or month selector and changes the SelectedDate.
[ VB ]
Public Event SelectionChanged As EventHandler
[ C# ]
public event EventHandler SelectionChanged;
[ C++ ]
public: __event EventHandler* SelectionChanged;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The method assigned to handle the event is passed an EventArgs object containing data related to the SelectionChanged event.
For more information about handling events, see Web Forms Events Model.
The following example demonstrates how to specify and code a handler for the SelectionChanged event determine the number of days selected. The sample also demonstrates how to enumerate the SelectedDates property with the odd numbered days in the currently displayed month.
Show me
Calendar Members