我有一个简单的 Web 表单应用程序。我收到以下错误:
错误 310(net::ERR_TOO_MANY_REDIRECTS):
Global.asax:
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("etusivu", "opas/{name}", "~/opas/etusivu.aspx");
}
页面加载:
protected void Page_Load(object sender, EventArgs e)
{
Response.RedirectToRoute("etusivu", new { name = "etusivu" });
}
有任何想法吗?