This documentation is archived and is not being maintained.

XhtmlCalendarAdapter.SaveAdapterState Method

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

Saves the current state of the adapter.

Namespace: System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly: System.Web.Mobile (in

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

Return Value

An Object containing information about the current state of the adapter.

This method is called by the page adapter during MobilePage.SaveViewState.

The state of the adapter can include the following information, returned inclusively in the following order:

  • Object containing the state of the base class.

  • integer representing the user's currently selected option.

  • Ticks of the currently selected date.

  • integer representing the number of eras if the current user's culture supports eras.

Notes to Inheritors When you inherit from the XhtmlCalendarAdapter class and the adapter overrides the SaveAdapterState method, the adapter should call the corresponding base class method before any additional processing.

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