Calendar.SelectionMode Property
.NET Framework 3.0
Gets or sets the date selection mode on the Calendar control that specifies whether the user can select a single day, a week, or an entire month.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
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)
Not applicable.
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 |
Community Additions
ADD
Show: