ASP.NET SelectionMode Property


Calendar Control Reference Complete Calendar Control Reference

Definition and Usage

The SelectionMode property is used to get or set how a user is allowed to select dates.

Syntax

<asp:Calendar SelectionMode="mode" runat="server" />

Attribute Description
mode Specifies how a users is allowed to select dates.

Possible values:

  • None
  • Day
  • DayWeek
  • DayWeekMonth

Example

The following example sets the SelectionMode of a calendar:

<form runat="server">
<asp:Calendar id="cal1" runat="server"
SelectionMode="DayWeekMonth" />
</form>

Show example »

Calendar Control Reference Complete Calendar Control Reference

SHARE THIS PAGE

COLOR PICKER

colorpicker





Search w3schools.com:

Translate w3schools.com: