System.Web.UI.HtmlControls Namespace HtmlInputCheckBox Class
Occurs when the Checked property of the HtmlInputCheckBox changes state between posts to the server.
[ VB ]
Public Event ServerChange As EventHandler
[ C# ]
public event EventHandler ServerChange;
[ C++ ]
public: __event EventHandler* ServerChange;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The event handler receives an EventArgs containing data related to the ServerChange event.
This event is raised when the Web page is submitted to the server and the Checked property of the HtmlInputCheckBox control changes state from the previous post.
NOTE: The control must have viewstate enabled for the ServerChange event to work correctly.
For more information about handling events, see Web Forms Events Model.
The following illustrates how to attach a handler to the onServerChange event of an HtmlInputCheckBox control.
<input type="checkbox" id="myCheckBox" runat="server"
onServerChange="showIfChanged">Check me out
Show me
HtmlInputCheckBox Members