XhtmlControlAdapter.SaveAdapterState Method

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

Saves view state data specific to this adapter.

Namespace: System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
virtual Object^ SaveAdapterState () override
public Object SaveAdapterState ()
public override function SaveAdapterState () : Object

Return Value

SecondaryUIMode if the value of the SecondaryUIMode setting does not equal NotSecondaryUI: otherwise a null reference (Nothing in Visual Basic).

This method is primarily used by developers of custom adapters.

Notes to Inheritors The base implementation of SaveAdapterState saves the current secondary UI mode in view state. You can override it to save other specific data from view state, but be sure to obtain the current state from the base class then combine it with your control-specific state in order to preserve the secondary UI mode across requests. For more information on managing view state, see ASP.NET State Management.

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: