I need to wrap the Validation Summary in a div. How do I set the Validation Summary to wrap it with a div when errors are present?
<div class="validation-summary">
<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
</div>
I had to extend the validation summary extensions in another project of mine to deal with more than one form on a page.
Although this is different, you could create your own extension method…
Then just call
HTHs,
Charles