only for RuBoard |
IN THIS CHAPTER
Validation Controls and How They Work
Shared Validator Attributes
The RequiredFieldValidator Control
The RegularExpressionValidator Control
The CompareValidator Control
The RangeValidator Control
The CustomValidator Control
The ValidationSummary Control
One Control, Multiple Validators
Summary
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
only for RuBoard |