Customize ValidationSummary in ASP.NET MVC 2

Posted by stacker on Stack Overflow See other posts from Stack Overflow or by stacker
Published on 2010-05-26T05:46:07Z Indexed on 2010/05/26 5:51 UTC
Read the original article Hit count: 433

I want to customize the html output of ValidationSummary in ASP.NET MVC 2

from

<div class="validation-summary-errors">
    <span>Oops! validation was failed because:</span>
    <ul>
        <li>The Title field is required.</li>
        <li>The Body field is required.</li>
    </ul>
</div>

to

<div class="validation-error">
    <p>Oops! validation was failed because:</p>
    <ul>
        <li>The Title field is required.</li>
        <li>The Body field is required.</li>
    </ul>
</div>

Is there any new way in asp.net MVC 2 to solve this?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about validationsummary