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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -