StateBag.IStateManager.LoadViewState Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Restores the previously saved view state of the StateBag object.

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

void IStateManager.LoadViewState(
	object state


Type: System.Object

An object that represents the StateBag state to restore.

This method restores view-state information for the StateBag object from a previous page request that was saved by the IStateManager.SaveViewState method.

This method is primarily used by control developers. You can override this method to control how a custom server control restores its view state. For more information, see ASP.NET State Management Overview.

.NET Framework
Available since 1.1
Return to top