RadioButtonList.RaisePostDataChangedEvent Method

Note: This method is new in the .NET Framework version 2.0.

Notifies the ASP.NET application that the state of the RadioButtonList control has changed.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected:
virtual void RaisePostDataChangedEvent ()
protected void RaisePostDataChangedEvent ()
protected function RaisePostDataChangedEvent ()

The RaisePostDataChangedEvent method is used primarily by control developers when deriving a custom control from the RadioButtonList class.

The ASP.NET page framework calls the RaisePostDataChangedEvent method on a RadioButtonList control when the LoadPostData method indicates that the state of the list items have changed in the RadioButtonList control. The RaisePostDataChangedEvent method calls the OnSelectedIndexChanged method to raise the SelectedIndexChanged event. Control developers can override the OnSelectedIndexChanged 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 SelectedIndexChanged event for the control. To validate a group of controls on the page when a list item within the RadioButtonList control is selected, set the AutoPostBack and CausesValidation properties to true, and then specify the group of controls to be validated in the ValidationGroup property.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: