我RegisterRoutes
在 Global.asax 中使用方法如下:
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("", "en-us/Articles/Browse", "~/en_us/Articles/Default.aspx");
}
所以,我有很多页面,我为他们做了同样的事情(106 个 aspx 页面)。这项工作会影响性能吗?
第二个问题是:有没有办法总结routes.MapPageRoute
一个有很多页面的webApp?