I would like to validate against more than 2 fields. Is that possible? What is the syntax of that?
In case it's not possible to use more than 2 fields in the Remote Validation attribute, then what is your advice to me as to how to transport the 3.rd field to my Remote Validation action method? Should I use ViewBag, Session, TempData or something
else?
rune007
Member
411 Points
186 Posts
Is it possible to validate against more than 2 fields with Remote Validation?
Feb 23, 2012 09:40 AM|LINK
Hi
I am using Remote Validation, with AdditionalFields property I can validate against two fields:
[Remote( "IsValueFour", "Home", AdditionalFields = "FieldTwo", HttpMethod = "POST" )]
I would like to validate against more than 2 fields. Is that possible? What is the syntax of that?
In case it's not possible to use more than 2 fields in the Remote Validation attribute, then what is your advice to me as to how to transport the 3.rd field to my Remote Validation action method? Should I use ViewBag, Session, TempData or something else?
bruce (sqlwo...
All-Star
36836 Points
5443 Posts
Re: Is it possible to validate against more than 2 fields with Remote Validation?
Feb 23, 2012 03:19 PM|LINK
[Remote( "IsValueFour", "Home", AdditionalFields = "FieldTwo, FieldThree", HttpMethod = "POST" )]
rune007
Member
411 Points
186 Posts
Re: Is it possible to validate against more than 2 fields with Remote Validation?
Feb 23, 2012 06:31 PM|LINK
Thank you again Mr. bruce