I'm going crazy! My code is a little too much to post here, but the problem is simple: if I decorate a field of my model, the editing form doesn't fire anymore (i.e. clicking the submit button, nothing happens).
I can post, here, the remote validation declaration and function:
[Required]
[Remote("CheckNomeAssociazione", "Associazioni")]
public string Nome { get; set; }
and this is the function:
public JsonResult CheckNomeAssociazione(string Nome)
{
return Json(true, JsonRequestBehavior.AllowGet);
}
If I comment the '[Remote...' row, the code is perfect. If I let it in place, the application steps into the remote validator, but doesn't do anything else. Anyone having same or similar problem? Thanks in advance Andrea