asp.net.ph

Calendar.VisibleMonthChanged Event

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.

Event Data

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.

Remarks

For more information about handling events, see Web Forms Events Model.

Example

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 

See Also

Calendar Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph