Validating date with rangevalidator control in
For this reason, in the past, many developers decided to add all their form validation logic exclusively to server-side code.Range Validator control check whether input control value is within a specified range of values. NET validation controls perform validation automatically when the page is posted back to the server, after page initialization (that is, after view-state and postback data have been processed) and before your event-handling code is called.
You can add form validation routines to your server-side code, or you can add the validation routines to your client-side code.
by Error Message property we can set rangevalidator validation fail error message text.
rangevalidator control have two property Maximum Value and Minimum Value to specify validation range.
The Type property is used to specify the data type of the values to compare.
The values to compare are converted to this data type before any comparison is performed.
Now, try running the website, and enter a date in our new Text Box.