MenuAdapter.SaveAdapterControlState Method

Note: This method is new in the .NET Framework version 2.0.

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

Return Value

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

The SaveAdapterControlState uses the Menu control state to maintain the current navigation path of the menu. When an adapter needs to maintain its own private state information, it can override the LoadAdapterControlState and SaveAdapterControlState methods. An adapter could 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 in OnInit in every request.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: