Basically, what the title says. I have several properties that combine together to really make one logical answer, and i would like to run a server-side validation code (tha
Possible Dupe:
Writing a CompareTo DataAnnotation Attribute
The answers to your questions should be there and at the very least it points to this blog post:
http://byatool.com/mvc/custom-data-annotations-with-mvc-how-to-check-multiple-properties-at-one-time/
To get the error message to display you must use:
<%: Html.ValidationMessage("") %>
What happens is because your validating on a class level your getting a ModelState with a key, aka property name usually, with an empty string.