Does anyone have a simple way of adding a css class to a html label when validation fails, preferably from within the model, in the public IEnumerable Validate(ValidationContext context) override, not with jQuery or in the Controller.
I have my validationsummary giving me the error message I just want to put * next to the failed input and make its label text bold and red.
@Html.LabelFor(model => model.Name)
<div class="editor-field">
@Html.EditorFor(model => model.Name)<br/><br />
</div>