System.Web.UI.HtmlControls.HtmlInputRadioButton.ServerChange Event

Occurs when the value of the HtmlInputRadioButton.Checked property of the System.Web.UI.HtmlControls.HtmlInputRadioButton control changes between posts to the server.

Syntax

public event EventHandler ServerChange

Remarks

The HtmlInputRadioButton.ServerChange event is raised when the HtmlInputRadioButton.Checked property of the System.Web.UI.HtmlControls.HtmlInputRadioButton control changes value between posts to the server. This allows you to create a custom event handler that performs a specific set of instructions (such as data validation) when the event is raised.

Note:

The control must have view state enabled for the HtmlInputRadioButton.ServerChange event to work correctly. To enable view state for all controls on the Web Forms page, set the System.Web.UI.Page.EnableViewState property to true. You can also enable view state for an individual control by setting the System.Web.UI.Control.EnableViewState property to true.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0