Sunday, August 31, 2008

BaseCompareValidator Class

BaseCompareValidator Class

The RangeValidator and CompareValidator inherit from the BaseCompareValidator control,
which contains common comparison behavior that is used by these controls.
The BaseCompareValidator contains the Type property, which you can set to the data type that the text is converted to before a comparison is made. The data types that are available are as follows:

->Currency The data is validated as System.Decimal, but currency symbols and grouping characters also can be entered.
->Date The data is validated as a numeric date.
->Double The data is validated as System.Double.
->Integer The data is validated as System.Int32.
->String The data is validated as System.String.

No comments: