HOW TO USE RANGEVALIDATOR IN ASP.NET

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
 674  View(s)
Ratings:
Rate this:
i want to use RangeValidator in asp.net how to use please help me.
  1. aditya kumar Patel

    Post:254

    Points:1810
    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!" />

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!