O'Reilly logo

The Microsoft Expression Web Developer's Guide to ASP.NET 3.5: Learn to create ASP.NET applications using Visual Web Developer 2008 by Jim Cheshire

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 16. Adding Form Field Validation Using ASP.NET

IN THIS CHAPTER

The Necessity of Form Validation

ASP.NET Validation Controls

Common Validation Control Properties

Adding and Configuring ASP.NET Validation Controls

Checkpoint

The Necessity of Form Validation

If you’re going to offer a form for user input on your website, you should always validate the input that the user provides. There are a couple of reasons why form validation is important. First of all, it ensures that the user provides you with the kind of information you expect. If you are expecting a phone number and a user enters text, you end up with bad data.

Secondly, it ensures that a malicious user doesn’t cause problems by entering bad data. For example, suppose you have a ...

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