Jul 202012
Programming in asp.net-mvc: MVC.net 2 – change the HTML outputed by ValidationMessageFor – can this be down via templates? on newest questions tagged asp.net-mvc – Stack Overflow
MVC.net 2 by default outputs validation messages like this:
<span id="UserName_validationMessage" class="field-validation-valid">A Validation message</span>
I would like it to do it like this:
<label id="UserName_validationMessage" class="field-validation-valid">A Validation message</label>
Is there a way to do it like the display and editor templates? Or is there another way to do it globally?
See Answers
source: http://stackoverflow.com/questions/2820471/mvc-net-2-change-the-html-outputed-by-validationmessagefor-can-this-be-down
Programming in asp.net-mvc: programming-in-asp-net-mvc
Recent Comments