ASP.net MVC How to change the Textbox Class upon validation failure?

Posted by Harry on Stack Overflow See other posts from Stack Overflow or by Harry
Published on 2009-03-11T06:04:45Z Indexed on 2010/12/25 4:54 UTC
Read the original article Hit count: 188

I notice in the default MVC template project that the Account registration fields are highlighted via a class change.

I can't seem to get the same behavour out of my own code (in the same project - same CSS etc)

What might be stopping this from occuring?

Update

I believe this relates to one of my other questions Because I was having trouble with NullReferenceExceptions I have changed the Html.ValidationMessage fields to have different names than the target fields.

So really, I need to resolve this question

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about textbox