dating in the dance scene is it possible - Validating date with rangevalidator control in
Another common example is while generating reports when user enters start date and end date, we need to check whether end date is always equal to or greater than the start date.
The common properties are: Control To Validate: We can specify the id of the control to Validate. Text: It specifies Error message to be displayed by the control.
This is the exact position the error message will appear if validation fails. This also improves response time on the server because the ASP.
The Compare Validator control is used to compare data entered in two form fields.
A common example we come across is comparing the Passwords while registering a new user.
The Is Valid property of Range Validator control has the value true when the validation check succeeds and false if not.
The code below shows how to use the Validate() method of Range Validator control.
Many a times, we need to check whether a user has enetered a date in a date filed, string in a string field, and a number in number field.