How to use RangeValidator in asp.net

Total Post:341

Points:2389
 927  View(s)
Ratings:
Rate this:
i want to use RangeValidator in asp.net how to use please help me.
  1. Post:281

    Points:2003
    Re: How to use RangeValidator in asp.net

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

      Modified On Apr-10-2018 05:40:46 AM

Answer