How do I make Html.ValidationMessageFor work on two properties?
- by Dalze
Currently I have a custom attribute that targetted to a class like so:
[PropertiesMustMatch("Password", "PasswordConfirm", ErrorMessage = "Passwords must match!")]
The problem is that in only shows up on the validation summary, and does not highlight the incorrect textboxes. Is there a way to do that?