我对远程验证的理解是,您应用它的模型字段名称必须与在控制器中进行验证的类中的变量名称相同,并且值将在后台传递。
所以,
[Remote("doesUserNameExist", "Treeview", AdditionalFields = "SomeStuff", HttpMethod = "POST", ErrorMessage = "Already exists")]
public string userName { get; set; }
public JsonResult doesUserNameExist(string userName)
{
}