System.Web.UI.WebControls Namespace
Specifies the validation data types used by the CompareValidator and RangeValidator controls.
The ValidationDataType enumeration represents the different data types that the CompareValidator and RangeValidator controls can validate.
When a data type is specified for a validation control, the value of the input control being validated is parsed to the specified data type if the input control passes validation.
Member Name |
Description |
Currency |
A monetary data type. The value is treated as a System.Decimal. However, currency and grouping symbols are still allowed. |
Date |
A date data type. Only numeric dates are allowed. The time portion cannot be specified. |
Double |
A double precision floating point number data type. The value is treated as a System.Double. |
Integer |
A 32-bit signed integer data type. The value is treated as a System.Int32. |
String |
A string data type. The value is treated as a System.String. |
BaseCompareValidator Validating Against a Data Type