Closed rafakato closed 11 years ago
Please close this issue, I found a way to do what I want, sorry
Please write what you did
I had to return the error message on JsonResult ie:
public JsonResult MyRemoteMethod(string valueToTest) { if (trueOrFalseMethod(valueToTest)) { return Json("Error message", JsonRequestBehavior.AllowGet); } return Json(true, JsonRequestBehavior.AllowGet); }
When using RemoteAttribute with unobstrusive validation the text is not correctly shown, neither if I set my ErrorMessage on Attribute