System.Web.UI.WebControls.RadioButtonList.RaisePostDataChangedEvent Method

Notifies the ASP.NET application that the state of the System.Web.UI.WebControls.RadioButtonList control has changed.

Syntax

protected virtual void RaisePostDataChangedEvent ()

Remarks

The RadioButtonList.RaisePostDataChangedEvent method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.RadioButtonList class.

The ASP.NET page framework calls the RadioButtonList.RaisePostDataChangedEvent method on a System.Web.UI.WebControls.RadioButtonList control when the RadioButtonList.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method indicates that the state of the list items have changed in the System.Web.UI.WebControls.RadioButtonList control. The RadioButtonList.RaisePostDataChangedEvent method calls the ListControl.OnSelectedIndexChanged(EventArgs) method to raise the ListControl.SelectedIndexChanged event. Control developers can override the ListControl.OnSelectedIndexChanged(EventArgs) method to perform custom processing when the user changes the selected item in the control.

The RaisePostBackEvent method can optionally perform validation before raising the ListControl.SelectedIndexChanged event for the control. To validate a group of controls on the page when a list item within the System.Web.UI.WebControls.RadioButtonList control is selected, set the ListControl.AutoPostBack and ListControl.CausesValidation properties to true, and then specify the group of controls to be validated in the ListControl.ValidationGroup property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0