asp.net.ph

HtmlInputCheckBox.ServerChange Event

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.

Event Data

The event handler receives an EventArgs containing data related to the ServerChange event.

Remarks

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.

Example

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 

See Also

HtmlInputCheckBox 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