SelectionList.LoadPostData(String, NameValueCollection) Method

Definition

Processes the postback data for this control. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

C#
protected bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);

Parameters

postDataKey
String

The key identifier for the control.

postCollection
NameValueCollection

The collection of all incoming named values.

Returns

true if the state of the SelectionList changes as a result of the postback; otherwise, false.

Exceptions

the call to LoadPostData(String, NameValueCollection, Object, Boolean) on the object referenced by Adapter returns false.

Remarks

The LoadPostData method uses the LoadPostData method on the IControlAdapter object referenced by the Adapter property to load data into the control from the post data sent by the client browser. If there is no device-specific handling for loading the postback data on this control, then the IControlAdapter.LoadPostData method returns true.

Applies to

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

See also