public ActionResult Logout() { ContextService.Close(); FormsAuthentication.SignOut(); return RedirectToAction("Index", "Home"); }主要是實(shí)現(xiàn)退出登錄,然后跳轉(zhuǎn),但是就是跳轉(zhuǎn)不到那個(gè)頁(yè)面,也沒(méi)有報(bào)錯(cuò)。不知道為什么,求助
2 回答

ibeautiful
TA貢獻(xiàn)1993條經(jīng)驗(yàn) 獲得超6個(gè)贊
return RedirectToAction( "Index", new RouteValueDictionary( new { controller = "Index", action = "Home" } ) );
- 2 回答
- 0 關(guān)注
- 2109 瀏覽
添加回答
舉報(bào)
0/150
提交
取消