Search code examples
c#asp.net

What data types do the RangeValidator control support?


explain the rangevalidator control,is it take string also? explain thank you


Solution

  • It supports

    1. Currency
    2. Date
    3. Double
    4. Integer
    5. String

    For comparing strings better to use Regularexpressionvalidator instead of Rangevalidator.

    In case of type string for the range validator it will only check the character by character, not the length of the string.