This documentation is archived and is not being maintained.

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

Return Value

Type: System::Object
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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: