I am trying to validate length of a string in a TextBox
. Controls on page defined as follows:
<asp:TextBox runat="server" ID="TB" />
<asp:RangeValidator runat="server" ID="RV"
MinimumValue="3" MaximumValue="20"
ControlToValidate="TB" Type="String" />
But when page runs there is run time error occurred
The MaximumValue 20 cannot be less than the MinimumValue 3
You mention Type incorrect
, it should be Type="Integer"
instead Type="String"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With