예제 #1
0
 protected void Application_Start(object sender, EventArgs e)
 {
     UriTemplateRoute route = new UriTemplateRoute("{areacode=010}/{days=2}","~/Weather.aspx", new { defualtCity = "BeiJing", defaultDays = 2 });
     RouteTable.Routes.Add("default", route);
 }
예제 #2
0
        protected void Application_Start(object sender, EventArgs e)
        {
            UriTemplateRoute route = new UriTemplateRoute("{areacode=010}/{days=2}", "~/Weather.aspx", new { defualtCity = "BeiJing", defaultDays = 2 });

            RouteTable.Routes.Add("default", route);
        }