Chapter 8. Validation Controls

OBJECTIVES

  • Investigate the validation controls provided by ASP.NET

  • Create Web forms that validate data

Before ASP.NET, validating the data users entered onto a Web page either required complex script code that ran in the client browser or a roundtrip to the server to run code on the server side to determine the validity of the data. Things are a lot simpler in ASP.NET. Here, you'll find a series of controls—the validation controls—that make validating data on either the client or server side much simpler.

If your users view your page using an “up-level” browser (that is, IE 4.0 or higher), ASP.NET can render script so that the browser can perform client-side validation. If not, ASP.NET can only validate the controls' ...

Get ASP.NET Developer's JumpStart 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.