Adam Youngers
Adam Youngers

Reputation: 6749

Hide errors in ASP:ValidationSummary

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.

Upvotes: 1

Views: 1311

Answers (1)

ShellyFM
ShellyFM

Reputation: 561

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.

Upvotes: 3

Related Questions