Validating form using javascript

Some sites on the Internet don't carry this inputted information back to the form page, and the user is then required to enter all the information into the form a second time.Obviously, this may cause people to leave your site for another.When you used server-side validation with ASP 3.0, if something the user entered was wrong, you could repost the form and ask the user to correct the information in that particular field of the form.Sometimes, you carried the correct input from the other fields back to the form page, and populated the fields for the users so they didn't have to re-enter the same information again.

(34 printed pages) Introduction Looking at Validation The Required Field Validator Control The Compare Validator Control The Range Validator Control The Regular Expression Validator Control The Custom Validator Control The Validation Summary Control Conclusion In your studies of ASP.

The bad thing about server-side validation is that it requires trips back and forth to the server.

This takes a lot of resources and makes for a slower-paced form for the user.

By Bill Evjen Reuters December 2003 Applies to: Microsoft® ASP. NET validation server controls that are at your disposal.

NET Summary: Learn how to use all the available ASP.