【发布时间】:2011-12-15 01:54:47
【问题描述】:
我一直在寻找一些方法来从另一个控制器重定向到 Index 视图。
public ActionResult Index()
{
ApplicationController viewModel = new ApplicationController();
return RedirectToAction("Index", viewModel);
}
这是我现在尝试的。现在给我的代码有一个ActionLink,它也链接到我需要的页面Redirect。
@Html.ActionLink("Bally Applications","../Application")
【问题讨论】:
标签: c# asp.net-mvc