Question

Is there a way to hide the individual errors in a ASP:ValidationSummary so that only the HeaderText is displayed?

I'm using the ASP:RegularExpressionValidator to return the individual errors inline so I don't need them returned in the summary.

Was it helpful?

Solution

Typically, the Text property of a validator is displayed inline and the ErrorMessage property value is displayed in the ValidationSummary. Try not setting the ErrorMessage property or set it to an empty string and see if that creates the effect you are aiming for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top