-
Why is it that my controller can't manage to go to the target Index page after logging in?
[HttpPost] [ValidateAntiForgeryToken] public JsonResult Login(FormCollection fc) { var isSuccess = false; Array errors = null; more code here... return Json(new { infoMessage = errors, successMessage = "", Status = isSuccess, gotoUrl = string.Format("/MyAccounts/Index") }, JsonRequestBehavior.AllowGet); }
The motive is to redirect the page to Index but it returns the Json result document instead.

没有评论:
发表评论