//Email Validation public JsonResult CheckEmailId(String Email) { bool EmailExists = false; Int32 res = 0; res = userregistrationData.CheckEmailExists(Email); if (res > 0) { EmailExists = true; } else { EmailExists = false; } return(Json(!EmailExists, JsonRequestBehavior.AllowGet)); }