SelectedDatesCollection::SelectRange Method (DateTime, DateTime)

 

Adds the specified range of dates to the SelectedDatesCollection collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
void SelectRange(
	DateTime fromDate,
	DateTime toDate
)

Parameters

fromDate
Type: System::DateTime

A System::DateTime that specifies the initial date to add to the SelectedDatesCollection.

toDate
Type: System::DateTime

A System::DateTime that specifies the end date to add to the SelectedDatesCollection.

Use this method to add the specified range of dates to the SelectedDatesCollection collection.

The following code example demonstrates how to programmatically use the SelectRange method to select a range of continuous dates on the Calendar control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: