<script> $('#btsubmit').click(function () { alert("Logged in"); }); </script>
[ValidateAntiForgeryToken] public ActionResult Login(LoginModel model, string returnUrl) { if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password, persistCookie: model.RememberMe)) { return RedirectToLocal(returnUrl); } // If we got this far, something failed, redisplay form ModelState.AddModelError("", "The user name or password provided is incorrect."); return View(model); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)