Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
36852 Points
5446 Posts
Mar 27, 2012 01:29 PM|LINK
you can iether pass the name of the other field in the validation attribute constructor, or have the model implement an interface to get the other field. it depends on how generic you want the validator.
bruce (sqlwo...
All-Star
36852 Points
5446 Posts
Re: What's the Best Way to Use a Value from Form Field within Custom Validator
Mar 27, 2012 01:29 PM|LINK
you can iether pass the name of the other field in the validation attribute constructor, or have the model implement an interface to get the other field. it depends on how generic you want the validator.