I want to use RangeValidator to validate percentage value. For that I set minimum value as 0.0 and maximum value to 100.00, but its not working. I tried using minimum value as 0% and maximum values as 100% but still not working.
Here is some code:
<asp:RangeValidator ID="percentageRangeValidator" runat="server"
ControlToValidate="percentageBox" Display="Dynamic"
ErrorMessage="Invalid Percentage"
MaximumValue="100.00" MinimumValue="0.00">*</asp:RangeValidator>
What’s wrong in my method.
You need to specify the type of the value
Type="Double":