Asp.net mvc 我正在进入登录页面,但主页再次打开

Asp.net mvc 我正在进入登录页面,但主页再次打开,asp.net-mvc,asp.net-mvc-4,login,loginview,Asp.net Mvc,Asp.net Mvc 4,Login,Loginview,我正在进入登录页面验证用户名和密码 但主页不打开,重定向到操作不起作用 主页再次打开 public class AccountController : Controller { Account _AccountProcess = new Account(); public ActionResult Index() { return View("Login");

我正在进入登录页面验证用户名和密码 但主页不打开,重定向到操作不起作用 主页再次打开

   public class AccountController : Controller
        {
            Account _AccountProcess = new Account();

            public ActionResult Index()
            {
                return View("Login");
            }

            public ActionResult Login()
            {
                return View();
            }

            [HttpPost]
            public ActionResult Login(AccountItem accountItem)
            {
                if (_AccountProcess.LoginAccount(accountItem)) >> Verifying the username and password
                {
                    FormsAuthentication.SetAuthCookie(accountItem.UserName, true);
                    return RedirectToAction("Index", "Base"); >> main page.. RedirectToAction not working
                }
                else
                {
                    return RedirectToAction("Index", "Account");
                }            
            }
        }    

在BaseController.Index中有什么代码?为什么在这个问题中要标记Jquery?在我的主页和ajax代码中没有看到任何Jquery.base控制器working@user3575477好的,显示这段代码……当你调试时,在重定向之前你是否达到了预期的行数?