【发布时间】:2016-06-08 15:32:53
【问题描述】:
我打电话给RedirectToRoute 正确吗?
RouteConfig.cs:
routes.MapRoute(
name: "Contact Us",
url: "ContactUs",
defaults: new {controller = "Home", action = "ContactUs"}
);
Handler.cs
HttpContext.Current.Response.RedirectToRoute("Contact Us",
new { controller = "Home", action = "ContactUs" });
【问题讨论】:
标签: c# asp.net-mvc-4 redirecttoroute