Calendar.SelectionMode Property

Definition

Gets or sets the selection mode of a Calendar object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

C#
[System.ComponentModel.Bindable(true)]
public System.Web.UI.WebControls.CalendarSelectionMode SelectionMode { get; set; }

Property Value

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

Attributes

Exceptions

The specified value is not one of the CalendarSelectionMode values.

Remarks

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. Note: Avoid using this value, because some browsers still allow the user to select a date.

Applies to

Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also