Chapter 14. Validator Controls


Almost all Web applications share a common functionality: allowing users to input data and then gathering and processing that data on the server. Web applications use form-based input fields such as text boxes, check boxes, and buttons as the primary mechanism to allow users to enter data. Data entry and data validation go hand in hand. It is essential to validate all user input before it is processed and stored on the server. Validation of user input typically has been a tedious aspect of Web application development. ASP.NET simplifies validation in Web applications immensely by providing a set of validation controls that implement commonly used validation rules on the server and on the client without requiring any application code. In addition, ASP.NET defines an extensible validation architecture for component developers to use in their controls.

As a component developer, you can develop your own validator controls to implement new validation rules. In this chapter, we will first describe the validation feature of Web Forms and then implement a new validator control named StringValidator that complements the built-in set of validators.



Developing Microsoft ASP. NET Server Controls and Components
Developing Microsoft ASP.NET Server Controls and Components (Pro-Developer)
ISBN: 0735615829
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net