Redigera

Dela via


TextBox.LoadPostData(String, NameValueCollection) Method

Definition

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

protected:
 bool LoadPostData(System::String ^ key, System::Collections::Specialized::NameValueCollection ^ data);
protected bool LoadPostData (string key, System.Collections.Specialized.NameValueCollection data);
member this.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Protected Function LoadPostData (key As String, data As NameValueCollection) As Boolean

Parameters

key
String

The key of the value in the data collection to be used for this control.

data
NameValueCollection

The collection of name/value pairs posted to the server.

Returns

true if the TextBox control's state has changed as a result of the postback; otherwise, false.

Remarks

The LoadPostData method first attempts to call the IControlAdapter.LoadPostData method on the IControlAdapter object referenced by Adapter. If the adapter has no device-specific implementation for loading the post data into the control, that call returns false and the TextBox.LoadPostData method then tests the value of the object referenced by the data parameter at the specified key against Text. If the values are not equal, the new value is set. If either attempt to load the posted data, whether through the adapter or directly, results in the data being changed, a RaisePostDataChangedEvent will occur.

Applies to