Export (0) Print
Expand All

ControlAdapter.LoadAdapterViewState Method

Loads adapter view state information that was saved by SaveAdapterViewState during a previous request to the page where the control associated with this control adapter resides.

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in system.web.dll)

protected internal virtual void LoadAdapterViewState (
	Object state
)
protected void LoadAdapterViewState (
	Object state
)
protected internal function LoadAdapterViewState (
	state : Object
)
Not applicable.

Parameters

state

An Object that contains the adapter view state information as a StateBag.

When an adapter needs to maintain its own view state information, it can override the LoadAdapterViewState and SaveAdapterViewState methods.

An adapter needs to maintain view state information when there is data that must be maintained across requests, independent from the view state of the associated control. For example, a grid control on desktop computer browsers might render as a single view of rows and columns of values. On other browsers, it might split its rendering into multiple separate views, such as a list of rows and details of a single row. The adapter would need to maintain the data for the views that are not currently active in view state.

The LoadAdapterViewState method is called immediately before the Control.LoadViewState method in the LoadState lifecycle stage. The adapter view state is separate and in addition to the view state of the control.

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:
© 2014 Microsoft