Validating Input Using Validation Controls

After the basic data-entry form has been created, a key requirement for completing the Web application is to provide data-validation logic for the associated controls. This makes the job of the application developer more focused on integrating the back-end business logic components with the front end, rather than worrying about validation of the parameters. In conjunction with the rich set of Web server controls, out-of-the-box ASP.NET also provides a list of prebuilt validation controls that are simple enough to be used easily, yet extensive enough to be applied in complex validation scenarios (see Listing 8.6).

Listing 8.6. Using Validation Controls to Validate Input
 <%@ Page Language="C#" %> <html> ...

Get Microsoft® .NET Kick Start 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.