Chapter 12. Web Form Data Validation

In this chapter

Introduction to Data Validation in ASP.NET

ASP.NET Validation Controls

Regular Expressions Primer

This chapter talks about data validation in ASP.NET. ASP.NET provides a group of validation controls that will make your job as a Web form developer much easier. These controls easily handle the task of data validation in form elements and provide a consistent programming model for developers.

When do you need data validation in an HTML form? Any time you need to ensure the user data is either present or in a specific format. For example, if you are asking users to enter an e-mail address and they type XYZ, that is not a valid e-mail address. They might have purposely entered an invalid e-mail address, ...

Get Special Edition Using® Microsoft® ASP.NET 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.