MenuAdapter.SaveAdapterControlState Method

Saves any changes to the adapter private control state that have occurred since the page was posted back to the server.

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

protected public:
virtual Object^ SaveAdapterControlState () override
protected Object SaveAdapterControlState ()
protected internal override function SaveAdapterControlState () : Object
Not applicable.

Return Value

An Object that contains the adapter's control state information as a StateBag.

The SaveAdapterControlState method uses the Menu control state to maintain the current navigation path of the menu. When an adapter needs to maintain private state information, it can override the LoadAdapterControlState and SaveAdapterControlState methods. An adapter might maintain private control state when there are complex features that need to maintain state across requests, separate from the associated control's state. The adapter needs to register for control state during the OnInit method call in every request.

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: