System.Web.UI.WebControls.RadioButtonList.LoadPostData Method

Processes the posted data for the System.Web.UI.WebControls.RadioButtonList control.

Syntax

protected virtual bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)

Parameters

postDataKey
The key identifier for the control, used to index the postCollection.
postCollection
A System.Collections.Specialized.NameValueCollection that contains value information indexed by control identifiers.

Returns

true if the state of the System.Web.UI.WebControls.RadioButtonList is different from the last posting; otherwise, false.

Remarks

The RadioButtonList.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.RadioButtonList class.

The RadioButtonList.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method indicates whether the state of the System.Web.UI.WebControls.RadioButtonList control has changed. In other words, it determines whether the selected list item in the control is the same as the last posted value. A user changing the selected item in the control changes the ListControl.SelectedIndex value for the System.Web.UI.WebControls.RadioButtonList control. If the same list item is selected in the control, or if the System.Web.UI.WebControls.RadioButtonList control is disabled, RadioButtonList.LoadPostData(string, System.Collections.Specialized.NameValueCollection) returns false.

When the RadioButtonList.LoadPostData(string, System.Collections.Specialized.NameValueCollection) method returns true for a control, the ASP.NET page framework invokes the RadioButtonList.RaisePostDataChangedEvent method for the control.

Requirements

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