| |||||
Calendar.SelectionMode PropertySystem.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 ); Property ValueOne of the CalendarSelectionMode values. The default is Day. Exceptions
RemarksTo disable date selection, set this property to None. ExampleThe 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" /> See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme