RangeValidator Control

The RangeValidator control is used to ensure that the input for a particular form field falls within a particular range of values. It extends upon the BaseValidator class's properties by adding three additional properties described in Table 8.4. To define a range of values for a control, it is necessary to know the minimum and maximum values of the range, as well as the type of data (numeric, date, and so forth) involved.

Table 8.4. RangeValidator Class Additional Properties
Method Type Description
MaximuumValue String The minimum valid value for the ControlToValidate.
MinimumValue String The maximum valid value for the ControlToValidate.
Type ValidationDataType The data type of value in the ControlToValidate. Must be one ...

Get ASP.NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.