O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing Web Form Validation

If you want to collect garbage from your users, avoid validating their data. On the other hand, proper use of the validation controls can help your users enter the correct information. The validations controls provided by ASP.NET should cover most needs. When they fall short, you can provide your own custom validation logic.

Validation controls allow you to specify the type of validation to occur and the error message that occurs when the user enters faulty data. Validation controls work just like Server controls in that you place them on the form and set their properties. When the form is rendered in HTML, the validation routines can be handled on the client side, thus preventing a round-trip to the server and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required