TextBox.LoadPostData Method

Loads postback data for the TextBox control.

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

protected:
bool LoadPostData (
	String^ key, 
	NameValueCollection^ data
)
protected boolean LoadPostData (
	String key, 
	NameValueCollection data
)
protected function LoadPostData (
	key : String, 
	data : NameValueCollection
) : boolean
Not applicable.

Parameters

key

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

data

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

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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: