RangeValidator Example in asp .net

 Validations are the most important part of websites and software. By using validations we can restrict users to enter any Invalid data into your database. There are many validation techniques available to validate form data like JQUERY validations, server side validations. In Asp .Net microsoft has provided us great validation controls.

In this series of articles we will explore validation controls provided by microsoft. 
    
In this article we will see how to use RangeValidator in asp .net. We can use RangeValidator to compare between range of data, we can also check data types like String, Integer, Double, Date, Currency.
    
Previous article from the series:
 
Step1: Create TextBox control and RangeValidator Control.
Step2: Use ErrorMessage property of RangeValidator and enter message you want to display.
Step3: Use ControlToValidate property of RangeValidator and enter id of TextBox which you want to validate.
Step4: Use MinimumValue property of RangeValidator and enter minimum value you want to except in this example we use 10.
Step5: Use MaximumValue property of RangeValidator and enter maximum value you want to except in this example we use 20.
Step6: Use ForeColor property of RangeValidator and enter name of the color you want to use.
 
Enter Value
 
Final Output: 
Range Validator example Anuj Koundal Codingfusion
 
We are nothing without our users ! You can help us offer even more high quality content. Please share our page !
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
8 + 6 =
 
About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2017 CodingFusion