如何重定向到aspx页面在一个控制器动作

问题描述:

是否有可能重定向到一个aspx页面在(asp.net-MVC3)控制器动作?
 应该是什么动作(的ActionResult?)的返回类型和重定向方法应该被调用(RedirectToAction?)。

is it possible to redirect to an aspx page in an (asp.net-mvc3 )controller action? What should be the return type of the action (ActionResult?) and which redirect method should be called (RedirectToAction?).

BR

您可以重定向从MVC行动的任何位置,你必须使用 RedirectResult 为。 RedirectResult 是一种类型的的ActionResult

You can redirect to anywhere from MVC action and you have to use RedirectResult for that. RedirectResult is a type of ActionResult.

有关前。

public RedirectResult RedirectToAspx()
{
  return Redirect("/pages/index.aspx");
}