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.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Label
System.Web.UI.WebControls.BaseValidator
System.Web.UI.WebControls.BaseCompareValidator
BasicFrame.WebControls.BaseCompareValidator
BasicFrame.WebControls.RangeValidator
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] [C#]
Namespace: BasicFrame.WebControls
Assembly: BasicFrame.WebControls.BasicDatePicker (in BasicFrame.WebControls.BasicDatePicker.dll)
RangeValidator Members | BasicFrame.WebControls Namespace | CompareValidator | CustomValidator | DifferenceValidator | RegularExpressionValidator | RequiredFieldValidator