Example #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);
 }
Example #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);
        }