Return Redirect();方法
???????public ActionResult DeleteUser(int id) ???????{ ???????????userInfoService.DeleteById(id); ???????????return Redirect("/UserInfo/Index"); ???????}
Response.Redirect();方法
???????public ActionResult Index() ?????????{ ?????????????ViewData["Message"] = "欢迎使用 ASP.NET MVC!"; ?????????????Response.Redirect("User/News"); ?????????????return View(); ?????????} ?
MVC控制器返回重定向操作
原文地址:http://www.cnblogs.com/xiaoliwang/p/7689981.html