
SelectedDatesCollection | 881
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
You can use a combination of different validation controls for a single control. For
example, you could use a RequiredFieldValidator to ensure that a value is entered and a
RangeValidator to ensure that the value is within a specified data range. This is often
required, as validators like RangeValidator will automatically validate a control if it is
empty, regardless of the properties you have set.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ Label ➝ BaseValidator(System.Web.UI.
IValidator)
➝ RequiredFieldValidator
SelectedDatesCollection
System.Web.UI.WebControls (system.web.dll)
sealed class
This class represents a collection of System.DateTime objects. It is used by the SelectedDates
property of the Calendar class to provide all the dates that have been selected.
The Calendar.SelectedDates property is used when the Calendar.SelectionMode property is set to
either CalendarSelectionMode.DayWeek or CalendarSelectionMode.DayWeekMonth, both of which allow
multiple selections (by week or month). If the Calendar.SelectionMode property is set to Calen-
darSelectionMode.Day ...