Basic Date Picker Documentation

RangeValidator Class

Checks whether the date value supplied is within a specified range of dates.

For a list of all members of this type, see RangeValidator Members.


[Visual Basic]
Public Class RangeValidator
    Inherits BaseCompareValidator
public class RangeValidator : BaseCompareValidator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


The RangeValidator control tests whether the date value supplied is within a specified date range.

The RangeValidator control uses three key properties to perform its validation. The ControlToValidate property contains the date control validate. The MinimumDate and MaximumDate properties specify the minimum and maximum dates of the valid range.

Note   Validation succeeds if the date control is empty. Use a RequiredFieldValidator control to make the date control a mandatory field.


[Visual Basic, C#] The following example demonstrates how to create a RangeValidator control and use on the Web page to determine whether the value of the date control is within the comparison range.

[Visual Basic]



Namespace: BasicFrame.WebControls

Assembly: BasicFrame.WebControls.BasicDatePicker (in BasicFrame.WebControls.BasicDatePicker.dll)

See Also

RangeValidator Members | BasicFrame.WebControls Namespace | CompareValidator | CustomValidator | DifferenceValidator | RegularExpressionValidator | RequiredFieldValidator