asp.net mvc - Class on validation message is empty -
normally write code this:
@html.validationmessagefor(m => m.username)
where username required property of model. show whatever message have configured. works, in particular case i'm working on, html gets generated not have class attribute set. gets set to:
class="error"
but code i'm seeing generated in project is:
class=""
so text user sees plain text. not decorated (red) css .error.
any ideas why class name not being output html?
Comments
Post a Comment