This documentation is archived and is not being maintained.

Calendar.SelectionMode Property

Gets or sets the selection mode of a Calendar object.

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

public CalendarSelectionMode SelectionMode { get; set; }
/** @property */
public CalendarSelectionMode get_SelectionMode ()

/** @property */
public void set_SelectionMode (CalendarSelectionMode value)

public function get SelectionMode () : CalendarSelectionMode

public function set SelectionMode (value : CalendarSelectionMode)

Property Value

The selection mode of the calendar control. The default is Day.

Exception typeCondition


The specified value is not one of the CalendarSelectionMode values.

The Web Forms CalendarSelectionMode enumeration provides the selections described in the following table.




A single date can be selected on the Calendar control.


A single date or entire week can be selected on the Calendar control.


A single date, week, or entire month can be selected on the Calendar control.


No dates can be selected on the Calendar control.


Avoid using this value, because some browsers still allow the user to select a date.

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, 1.1