Checking a Range
The RangeValidator control allows you to verify that the value of a control falls within a specified range. For example, you could make sure that a text box's value is between 5 and 10 or between a month ago and the current date.
Normally, you'll need to set the properties shown in Table 8.3, in addition to those listed in Table 8.1.
Property | Description |
---|---|
MaximumValue | The maximum allowable value. |
MinimumValue | The minimum allowable value. |
Type | The type of data to compare, selected from String, Integer, Date, Double, or Currency. This property controls the type of comparison to perform—it wouldn't make sense to perform a text comparison when you're entering numeric values, for ... |
Get ASP.NET Developer's JumpStart 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.