Example of RangeValidator Control in ASP.Net

RangeValidator control is used to checks the input control’s value is within a specified range, Means input values must be between two values,  It has minimum and maximum value.

Generally we use RangeValidator control for Mobile no and Pincode Number.

The most important properties of the RangeValidator control are MaximumValue, MinimumValue, and Type.

We must specify the Range from Minimum values to Maximum Values and Type of Input Values.

Here, we understand the range validator control with an example for validating Mobile Number.

The mobile number must be 10 digit number.
Here, we have to set rangevalidator property for mobile number :
MaximunValue = 9999999999 and MinimumValue = 1000000000 and Type=Double
Below is the html design code for asp.net web forms.


 

How to use RangeValidator control in asp.net

How to use RangeValidator control in asp.net

 

How to use RangeValidator control in asp.net

How to use RangeValidator control in asp.net

 

How to use RangeValidator control in asp.net

How to use RangeValidator control in asp.net

 

How to use RangeValidator control in asp.net

How to use RangeValidator control in asp.net

 

How to use RangeValidator control in asp.net

How to use RangeValidator control in asp.net

 

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 1 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">