Q&A

Q1:I noticed that the Display property can have one of three settings: None, Static, and Dynamic. I understand the Static and Dynamic settings, but why on Earth would anyone ever want to use the None setting?
A1: When a validation Web control's Display property is set to None, the ErrorMessage property is never displayed, regardless of whether or not the data being validated is valid. It may seem confounding as to why anyone would ever want to do this.

One of the validation Web controls that we didn't discuss in length in this hour is the ValidationSummary control, which lists all of the validation errors on a Web page. If each validation Web control displays its error message and the ValidationSummary Web control displays each error message, ...

Get SAMS Teach Yourself ASP.NET in 24 Hours 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.