System.Web.UI.WebControls Namespace Calendar Class
Sets or retrieves the date selection capabilities on the Calendar to allow the user to select a day, week, or month.
[ VB ]
Public Property SelectionMode As CalendarSelectionMode
[ C# ]
public CalendarSelectionMode SelectionMode {get; set;}
[ C++ ]
public: __property CalendarSelectionMode get_SelectionMode ( );
public: __property void set_SelectionMode ( CalendarSelectionMode );
[ JScript ]
public function get SelectionMode ( ) : CalendarSelectionMode;
public function set SelectionMode ( CalendarSelectionMode );
One of the CalendarSelectionMode values. The default is Day.
To disable date selection, set this property to None.
The following example demonstrates how to set the SelectionMode property to allow date selection by day or month.
<asp:Calendar id = "myCalendar" runat = "server"
SelectionMode = "DayWeek" />
Calendar Members