Sunday, August 31, 2008

RangeValidator Control

RangeValidator Control

->The RangeValidator control is used to verify that the data to be validated is within a specified range of values. To use this control effectively, you must set the Minimum-Value, MaximumValue, and the Type properties.

->The Type property causes the data to be converted to the proper data type prior to checking the range. The Type property defaults to String, so you must set the Type property to achieve proper range validation. For example, if you don’t set the Type property, it defaults to String, and if a numeric range is being checked from 3 to 30, only strings that begin with the string letter 3 are considered valid.

No comments: