Home > DeveloperSection > Forums > How to use RangeValidator in asp.net
Ankit Singh

Total Post:341

Posted on    November-12-2015 9:54 PM

 .NET ASP.Net 

 1 Reply(s)
 604  View(s)
Rate this:
i want to use RangeValidator in asp.net how to use please help me.

aditya kumar Patel

Total Post:254

Posted on    November-12-2015 9:57 PM

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.

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!" />

Don't want to miss updates? Please click the below button!

Follow MindStick