Suggestions for ValidationSummary HeaderText

John Avis by | June 6, 2014 | ASP.NET Web Forms Web Development

I often use the standard ASP.NET ValidationSummary to display form validation error messages but often struggle what to write for the Headertext property.
I often use the standard ASP.NET ValidationSummary to display form validation error messages but often struggle what to write for the Headertext property.

Best practice these days tends towards inline validation error messages rather than a summary, but there's still a place for the old ValidationSummary.

After a little research online, here are some suggestions for header text:

"There are some errors, please correct them below."

"The following errors were encountered:"

"There was a problem with your submission."

"There were some problems with the information you provided"

"Sorry, but an error has been made."

On the subject of validation, best practice also says to not tell the user what they did wrong, instead tell them what they need to do to fix the problem.

For example, instead of saying "Email is blank" you would say "You must enter an email address".

Do you have any other suggestions for header text? Leave me a comment.

Related Posts

Computers & Internet Web Development Website Hosting

500 Internal Server Error after migrating from IIS 7.5 to IIS 10

by John Avis | November 4, 2019

As support ends for Microsoft Windows Server 2008 I have recently gone through migrating some websites to a new server running Windows Server 2016 and IIS 10 but some of the websites did not work.


Jquery/Javascript Web Development

tagInput: A simple jQuery plugin for tag entry using Bootstrap 4

by John Avis | October 15, 2019

For a website project I needed a way to enter multiple tags. I just wanted something simple that I could easily modify to suit my own needs, so I wrote my own.


ASP.NET Web Forms Web Development

ASP.NET bug with RadioButton GroupName in Repeater

by John Avis | September 1, 2019

I rediscovered a bug in ASP.NET that affects RadioButtons inside repeaters. Here is my solution to the problem.

Comments

There are no comments yet. Be the first to leave a comment!

Leave a Comment

Tags

About me

...random postings about web development and programming, Internet, computers, electronics and automotive topics.

Subscribe

Get the latest posts delivered to your inbox.