asp.net.ph

CalendarSelectionMode Enumeration

System.Web.UI.WebControls Namespace


Specifies the date selection method for a Calendar control.

Members


Member Name Description
Day Dates selected by individual days.
DayWeek Dates selected by individual days or entire weeks.
DayWeekMonth Dates selected by individual days, entire weeks, or entire months.
None No dates can be selected.

Remarks

The CalendarSelectionMode enumeration represents the possible values that can be passed to the SelectionMode property of a Calendar control.

Example

The following example demonstrates dynamically setting the SelectionMode property of a Calendar at run time, based on user input.

void Page_Load ( Object src, EventArgs e ) {
   myCalendar.SelectionMode = ( CalendarSelectionMode ) lstSelMode.SelectedIndex;
   if ( myCalendar.SelectionMode == CalendarSelectionMode.None )
      myCalendar.SelectedDates.Clear ( );
}

 Show me 

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph