This documentation is archived and is not being maintained.

XhtmlCalendarAdapter Class

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

Provides an XHTML adapter class for the System.Web.UI.MobileControls.Calendar.

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

Public Class XhtmlCalendarAdapter
	Inherits XhtmlControlAdapter
Dim instance As XhtmlCalendarAdapter

public class XhtmlCalendarAdapter extends XhtmlControlAdapter
public class XhtmlCalendarAdapter extends XhtmlControlAdapter

Control or device developers can inherit the XhtmlCalendarAdapter to create a custom adapter to take advantage of a new kind of target device, or to support a custom version of the System.Web.UI.MobileControls.Calendar control.

A custom adapter might override the OnInit or OnLoad methods to change how the Calendar is first presented to the user. Or, you might change LoadAdapterState and SaveAdapterState to track different information about the state of the adapter. You might change OnPreRender to modify data structures for a custom calendar, or add custom processing to the Render method to take advantage of new capabilities in a specific target device. A new target device might also have special needs that require modification to the HandlePostBackEvent method.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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