[SOLVED] RangeValidator Can't Count?


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"

Answered By – Muhammad Akhtar

Answer Checked By – Mildred Charles (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *