HiddenField.LoadPostData Method (String, NameValueCollection)


Processes postback data for a HiddenField control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected virtual bool LoadPostData(
	string postDataKey,
	NameValueCollection postCollection


Type: System.String

The key identifier for the control.

Type: System.Collections.Specialized.NameValueCollection

The collection of all incoming name values.

Return Value

Type: System.Boolean

true if the HiddenField control's state changes as a result of the postback; otherwise, false.

The Web Forms page framework tracks all the server controls that return true to this method call, then invokes the RaisePostDataChangedEvent on those controls.

.NET Framework
Available since 2.0
Return to top