ASP Form Validation

Source Code Back to Tutorials

The form on this page is for showing form validation techniques.
If you enter inappropriate data in the fields on this page, the page we submit to will display an error and return us to this page.

Validation Rules in place are:
1. Start Date must be a valid date.
2. End Date must be a valid date.
3. End Date must be equal to or later than Start Date.
4. Number must be a valid number between 1 and 10

 

Start Date: Will cause error if not a date value (try and see)
End Date:   Will cause error if not a date value (try and see)
Number:               Only Numbers 1 - 10 are valid here.