currently I have a strange problem with RangeValidator.
I have a TextBox declared like this :
<asp:TextBox ID="textBox1" runat="server" type="number"></asp:TextBox>
and a RangeValidator declared like this :
<asp:RangeValidator runat="server"
ID="rangeValidator1"
ErrorMessage="Insert between 1-10000"
ControlToValidate="textBox1"
MaximumValue="10000"
MinimumValue="1">
for some reason it only valid when I entered these numbers :
1
10
100
1000
10000
the rest numbers between 1-10000 (ex.: 2-9, 11-99, etc.) simply cause the validator to fail.
why is this happen?