If the date selected is valid, that date is presented through the Label control on the page.
The code for this example is presented in Listing 7-12.
The Range validator control properties "Minimum Value" and "Maximum Value" which can be used to check for certain range.
Let's activate this range validators controls programmatically: As you can see that using Range Validator control is pretty simple.
The Validation controls are used for validating the data entered in Text Box(input) controls. It checks whether or not the value of an input control is inside a specified range of values.
When any user enters the data on a text Box (web page) and submits the page on the server ,then validation controls are used to check the data field entered by the user any data entered by the user is invalid (not correct format) then validation control displays an error message on the screen. This controls can be used with mobile Number, Age, Date of Birth etc. I will discuss later this with the help of a real time you want to understand the whole concept of validation control then first download this application from below and Run this on your visual studio 2010 or other.
The Range Validator control makes an analysis of the value provided and makes sure the value is somewhere in the range of 30 to 40.
Using the Regular Expression Validator control, you can check a user’s input based on a pattern that you define using a regular expression.
This means that you can define a structure that a user’s input will be applied against to see if its structure matches the one that you define.
So what ever you put in the Text property of the validation control it will be displayed in the Validation Summary control.
The Range Validator control is quite similar to that of the Compare Validator control, but it makes sure that the end-user value or selection provided is between a specified range as opposed to being just greater than or less than a specified constant.