ASP.NET SelectionMode Property
Definition and Usage
The SelectionMode property is used to set or return how users select dates.
This property sets or returns the date selection mode on the Calendar control, which specifies whether the user can select a single day, a week, or a full month.
Syntax
<asp:Calendar SelectionMode="mode" runat="server" />
Property | Description |
---|---|
mode |
Specify the way users select dates. Possible Values:
|
Example
The following example sets the SelectionMode of the calendar:
<form runat="server"> <asp:Calendar id="cal1" runat="server" SelectionMode="DayWeekMonth" /> </form>
Example
- Set the SelectionMode of Calendar Control