I\'m using remote validation with jQuery Validation.
I\'m trying to call my server side code in MVC but the problem is that my variable is in a nested class:
You can use the Prefix property of BindAttribute to effectively 'strip' the prefix.
Prefix
BindAttribute
public JsonResult Validate([Bind(Prefix="HouseState.Name")]string Name)
so name="HouseState.Name" becomes just Name when binding
name="HouseState.Name"
Name