asp.net.ph

Calendar.SelectionChanged Event

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.

Event Data

The method assigned to handle the event is passed an EventArgs object containing data related to the SelectionChanged event.

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 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 

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