RadioButtonList.LoadPostData(String, NameValueCollection) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Processes the posted data for the RadioButtonList control.
protected:
virtual bool LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection);
protected virtual bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
abstract member LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
override this.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Protected Overridable Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean
- postDataKey
- String
The key identifier for the control, used to index the postCollection
.
- postCollection
- NameValueCollection
A NameValueCollection that contains value information indexed by control identifiers.
true
if the state of the RadioButtonList is different from the last posting; otherwise, false
.
The LoadPostData method is used primarily by control developers in custom controls that derive 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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: