RadioButtonList.LoadPostData Method

Processes the posted data for the RadioButtonList control.

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

protected:
virtual bool LoadPostData (
	String^ postDataKey, 
	NameValueCollection^ postCollection
)
protected boolean LoadPostData (
	String postDataKey, 
	NameValueCollection postCollection
)
protected function LoadPostData (
	postDataKey : String, 
	postCollection : NameValueCollection
) : boolean
Not applicable.

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.

Return Value

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

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

The LoadPostData method indicates whether the state of the 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 SelectedIndex value for the RadioButtonList control. If the same list item is selected in the control, or if the RadioButtonList control is disabled, LoadPostData returns false.

When the LoadPostData method returns true for a control, the ASP.NET page framework invokes the RaisePostDataChangedEvent method for the control.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: