Suggestions for ValidationSummary HeaderText
by johna | 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.
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.
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
Converting dBase IV programs to run in the browser
by johna | September 13, 2024
Some pointless entertainment trying to get some old dBase programs running in the browser.
How to set up a debugging using the Turnkey Linux LAMP stack and VS Code
by johna | December 19, 2023
The second part in my guide to setting up a website and database using the Turnkey Linux LAMP stack.
How to set up a website and database using the Turnkey Linux LAMP stack
by johna | November 18, 2023
If you need to host your own website for the purposes of web development, Turnkey Linux LAMP Stack is an easy to install all-in-one solution that you can set up on a spare computer or a VM (Virtual Machine).
Comments
There are no comments yet. Be the first to leave a comment!