Validating rich text field
(11 printed pages) Introduction The Problem The Objective The Solution-Overview Client Features What Is a Validator?Validator Walk-Through It's Not Voluntary Getting Regular Comparing Apples and Apples Custom Fit The Finale Sample Code Validating user input is a common scenario in a Web-based application.
private static final Pattern zip Pattern = Pattern.compile("^\d(-\d)?Anthony Moore Microsoft Corporation July 2000 Updated March 2002 Summary: Provides a brief overview of the validation framework in ASP.NET and walks through an example of adding validation to a page.Input validation is performed to ensure only properly formed data is entering the workflow in an information system, preventing malformed data from persisting in the database and triggering malfunction of various downstream components.
Input validation should happen as early as possible in the data flow, preferably as soon as the data is received from the external party.
Data from all potentially untrusted sources should be subject to input validation, including not only Internet-facing web clients but also backend feeds over extranets, from suppliers, partners, vendors or regulators, each of which may be compromised on their own and start sending malformed data.