WebPartManager.LoadControlState Method (Object)


Loads control state data that was saved from a previous page request, and needs to be restored on a subsequent request.

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

protected internal override void LoadControlState(
	object savedState


Type: System.Object

Contains the persisted state data to be loaded.

Exception Condition

savedState is not a valid ControlState.

The LoadControlState method is helpful for restoring property data that should be persisted across postbacks of a page, even when the EnableViewState property is set to false.

.NET Framework
Available since 2.0
Return to top