Export (0) Print
Expand All

ControlAdapter.SaveAdapterControlState Method

Saves control state information for the control adapter.

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

abstract SaveAdapterControlState : unit -> Object  
override SaveAdapterControlState : unit -> Object

Return Value

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

Control state is the essential state information needed even if view state is disabled. When an adapter needs to maintain its own control state information, it can override the SaveAdapterControlState and LoadAdapterControlState methods.

An adapter might need to maintain control state information when there are features that need to have state maintained across requests, independent from the state of the associated control. For example, a composite control consisting of a large textual display and a group of RadioButton controls might render as a single view on desktop computer browsers. On other browsers, it might split its rendering—one view for the textual display and the other for the radio button group. The adapter would need to maintain its own target-specific information about the currently active view.

The SaveAdapterControlState method is called immediately after the Control.SaveControlState method in the SaveState lifecycle stage. The adapter control state is separate and in addition to the control state of the control.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft