Calendar.SelectionMode Property
Assembly: System.Web (in system.web.dll)
public: property CalendarSelectionMode SelectionMode { CalendarSelectionMode get (); void set (CalendarSelectionMode value); }
/** @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
One of the CalendarSelectionMode values. The default value is Day.Use the SelectionMode property to specify the date selection mode on the Calendar control. This property is set with one of the CalendarSelectionMode enumeration values. You can specify whether the user can select a single day, a week, or an entire month, or you can disable date-selection capability entirely.
When this property is set to CalendarSelectionMode.DayWeek or CalendarSelectionMode.DayWeekMonth, an additional selector column that contains week and month selection controls is displayed in the first column of the Calendar control. Use the SelectorStyle property to customize the appearance of this column.
To disable date selection, set this property to CalendarSelectionMode.None.
| Topic | Location |
|---|---|
| How to: Control User Date Selection in a Calendar Web Server Control | Building ASP .NET Web Applications |
| How to: Control User Date Selection in a Calendar Web Server Control | Building ASP .NET Web Applications |
Windows 98, Windows 2000 SP4, 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.