asp.net mvc2 为什么 RedirectToAction() 跳转没有反应?

public ActionResult Logout()
        {
            ContextService.Close();
            FormsAuthentication.SignOut();

            return RedirectToAction("Index", "Home");
        }

主要是实现退出登录,然后跳转,但是就是跳转不到那个页面,也没有报错。不知道为什么,求助


翻阅古今
浏览 2049回答 2
2回答

狐的传说

            return Redirect("/Home/Index");

ibeautiful

return RedirectToAction( "Index", new RouteValueDictionary(      new { controller = "Index", action = "Home" } ) );
打开App,查看更多内容
随时随地看视频慕课网APP