IN THIS CHAPTER
In Chapter 8, “Gathering Data with ASP.NET Web Forms,” I discussed how to use many of the new ASP.NET server controls to gather data from users. In this chapter, I'll demonstrate how to use ASP.NET's collection of validation controls to validate data on both the client side and the server-side before a database edit is made. Specifically, we will explore the following topics:
What validation controls are and how they work
Using the RequiredFieldValidator control
Using the CompareValidator control
Using the RangeValidator control
Using the RegularExpressionValidator control
Using the CustomValidator control
Displaying error information using the ValidationSummary control
Multiple validator controls on one input control
18.119.160.119