Chapter 5 Form Validation

It’s a commonly held belief that the point of validating user input is to ensure that valid, accurate data is entered into your database. To some degree this may be true, but search your user database for the number of users named Mickey Mouse and you’ll soon realize that a determined user can always pass your validation rules with inaccurate data.

The real objective of form validation is to help users who want to enter accurate information to do so as easily as possible, while making as few mistakes as possible. For example, if you validate an email address, you may catch a typo that the user entered inadvertently. If you do so without requiring a post back to the server, you’ve made it easier for the user to ...

Get The ASP.NET 2.0 Anthology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.