How to Use Microsoft Asp.Net to Create a Data Entry System


show more Controlling the validation error message display provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Controlling the validation error message display

When you place an ASP.NET Validator control within a DetailsView control, its formatting is controlled by the Container control. That is, the DetailsView. And it's a good idea to apply formatting to the validator to make sure that it stands out and the user sees it clearly. For this demonstration, I'll be working in the file TitleInsertValidationMessages.aspx. In this file I have created a number of validators and applied them to the various form controls, the Price and PubDate. I will start by running the page in the browser and show you the nature of the problem. The DetailsView control that contains both the form controls and the validators has a particular background color. I'll leave the Price blank and type in a non-date value into the PubDate control. And then I'll click the Insert link, and you will see that the error messages using their default formatting are hard to read against the background of the Details View.

You will also see that there is a bunch of ex...

Controlling the validation error message display
Video duration: 6m 24s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Controlling the validation error message display 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 ...