How do I check in .cshtml page if @Html.ValidatonSummary(true) contains any validation errors.
If a user enters invalid values and submits the form by clicking a button, the validation error is displayed. I want to be able to check if there are any error message and then modify that error message while displaying. Something like this in the cshtml page,
if @Html.ValidationSummary(true) returns error message
then @Html.ValidationSummary(MyResourceFile.InvalidEntries)
Thanks!