asp.net.ph

CheckBox.CheckedChanged Event

System.Web.UI.WebControls Namespace   CheckBox Class


Occurs when the value of the Checked property changes between posts to the server.

[ VB ]
Public Event CheckedChanged As EventHandler

[ C# ]
public event EventHandler CheckedChanged;

[ C++ ]
public: __event EventHandler* CheckedChanged;

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 CheckedChanged event.

Remarks

The CheckedChanged event is raised whenever the value of the Checked property changes between posts to the server.

This event does not post the page back to the server unless the AutoPostBack property is set to true. Also, the control must have viewstate enabled for the CheckedChanged event to work correctly.

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

Example

The following examples demonstrate how to specify and code a handler for the CheckedChanged event of a CheckBox control.

Custom Paging with AutoIncrement Data Model
Run Sample | View Source
Dynamically Setting and Retrieving the Font Properties of a Web Control
Run Sample | View Source
DataGrid PagerStyle Properties Example
Run Sample | View Source
See Also

CheckBox 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