This documentation is archived and is not being maintained.

XhtmlCalendarAdapter.HandlePostBackEvent Method

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

Sets the SecondaryUIMode according the user's action on any primary or secondary page of the System.Web.UI.MobileControls.Calendar control.

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

public override bool HandlePostBackEvent (
	string eventArgument
public boolean HandlePostBackEvent (
	String eventArgument
public override function HandlePostBackEvent (
	eventArgument : String
) : boolean



The target SecondaryUIMode expressed as a string.

Return Value

Always returns true because the method always handles the event.

A System.Web.UI.MobileControls.Calendar displays on one or more pages on a mobile device. When the user takes an action on one of those pages, this event handler processes the user's response and determines if the user is done with the calendar and whether the adapter should call ExitSecondaryUIMode, or if the user should be directed to one of the secondary pages of the control.

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