O'Reilly logo

The ASP.NET 2.0 Anthology by Phil Haack, Jon Galloway, Wyatt Barnett, Jeff Atwood, Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required