ASP.net MVC How to change the Textbox Class upon validation failure?
- by Harry
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