I dont know what is the maximum and minimum value of string in RangeValidator in asp.net
is anyone have idea? in such interview of asp.net company ask this question? so i want to know please help me out
thnx in ad开发者_如何学Cvance
The RangeValidator control is used to check that the user enters an input value that falls between two values. It is possible to check ranges within numbers, dates, and characters.
Note:
1.The validation will not fail if the input control is empty. Use the RequiredFieldValidator control to make the field required.
2.The validation will not fail if the input value cannot be converted to the data type specified. Use the CompareValidator control, with its Operator property set to ValidationCompareOperator.DataTypeCheck, to verify the data type of the input value.
3.Specifies the data type of the value to check. The types are:
Currency Date Double Integer String
4.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.
source : http://forums.asp.net/t/1046041.aspx/1?how+to+use+RangeValidator+for+String+type+
精彩评论