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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: