|
-
Jul 13th, 2011, 07:55 PM
#1
[RESOLVED] [MVC3] Implementing a custom validation attribute for CompareTo
The System.Web.Mvc.CompareAttribute checks if two properties in a Model are equal, but I wanted to implement a validation attribute to check if x < y or x > y, instead of just x == y. All the examples I've found so far on Google show how to implement an attribute for class-level validation, but I haven't yet found any examples that show it for property-level validation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|