Using the ValidationSummary control


show more Using the ValidationSummary control provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Using the ValidationSummary control

The ASP.NET Framework includes a control called the Validation Summary. The purpose of the Validation Summary is to collect all of the error messages generated by all of the validators within a particular page, and then to display those messages in a single location on the page. For this demonstration I'll use a file called TitleInsertValidationSummary.aspx. In the current version of the page there are three validator controls. Two of them on the Price field and one on the PubDate. If I simply click the Insert link, I'll see the error message for the price displayed. And if I type in a non-date value like xyz, I'll also see the validator for the pubdate displayed.

By using the Validation Summary, I'll collect these messages and display them in a single bullet list below the form. I'll close the browser and return to Visual Web Developer. The first step is to suppress the automatic output of the validator controls. I'll go to each of the validator controls in Sou...

Using the ValidationSummary control
Video duration: 3m 4s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Using the ValidationSummary control provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training

Subjects:
Developer Web
Software:
ASP.NET
Author:
please wait ...