TheRangeValidator does exactly what the name implies; it makes sure that the user input is within a specified range. You can use it to validate both numbers,Currency,strings and dates, which can make it useful in a bunch of cases. Since we validated numbers the last time, we will try with aCurrencynow.
RangeValidator :<br />
<asp:TextBox runat="server" id="txtamnt" />
<asp:RangeValidator runat="server" id="rngamt" controltovalidate="txtamnt" type="Currency" minimumvalue="1" maximumvalue="100000" errormessage="Please enter a valid Amount!" />
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The RangeValidator does exactly what the name implies; it makes sure that the user input is within a specified range. You can use it to validate both numbers, Currency, strings and dates, which can make it useful in a bunch of cases. Since we validated numbers the last time, we will try with a Currency now.