This documentation is archived and is not being maintained.

TextBox.LoadPostData Method

Loads postback data for the TextBox control. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

protected bool LoadPostData(
	string key,
	NameValueCollection data


Type: System.String
The key of the value in the data collection to be used for this control.
Type: System.Collections.Specialized.NameValueCollection
The collection of name/value pairs posted to the server.

Return Value

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

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.