Min and max value of range validator?

Jui Test picture Jui Test · May 9, 2012 · Viewed 10.1k times · Source

Range validator is used for string,integer and date.Can anybody give me ,min and max value of them?

Answer

Pranay Rana picture Pranay Rana · May 9, 2012

min and max length is euqal lenght of the int and double type...

Range validator control is a validator control which checks to see if a control value is within a valid range. The attributes that are necessary to this control are: MaximumValue, MinimumValue, and Type.

The RangeValidator control throws an exception if the value specified by the MaximumValue or MinimumValue property cannot be converted to the data type specified by the Type property.

RangeValidator is not a good validator to validate the length of the string.You'd better use RegularExpressionValidator to validate it.

http://forums.asp.net/t/1046041.aspx/1?how+to+use+RangeValidator+for+String+type+