System.Web.UI.WebControls Namespace Calendar Class
Occurs when the user clicks on the next or previous month controls on the title.
[ VB ]
Public Event VisibleMonthChanged As MonthChangedEventHandler
[ C# ]
public event MonthChangedEventHandler VisibleMonthChanged;
[ C++ ]
public: __event MonthChangedEventHandler* VisibleMonthChanged;
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 a MonthChangedEventArgs object containing data related to the VisibleMonthChanged event. The following MonthChangedEventArgs properties provide information specific to this event.
Property |
Description |
NewDate |
Gets the date that determines the month currently displayed by the Calendar. |
PreviousDate |
Gets the date that determines the month previously displayed by the Calendar. |
For more information about handling events, see Web Forms Events Model.
The following example demonstrates how to specify and code a handler for the VisibleMonthChanged event to display what direction the Calendar has moved when the month changes.
Show me
Calendar Members