Export (0) Print
Expand All

Calendar.SelectionMode Property

Gets or sets the selection mode of a Calendar object.

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

[BindableAttribute(true)] 
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

ArgumentException

The specified value is not one of the CalendarSelectionMode values.

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

Value

Description

Day

A single date can be selected on the Calendar control.

DayWeek

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

DayWeekMonth

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

None

No dates can be selected on the Calendar control.

NoteNote

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

Community Additions

ADD
Show:
© 2014 Microsoft