日期:2014-05-17 浏览次数:20473 次
routes.Add("Grade",new Route("{controller}/{action}/{id}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" }, { "id", null } } }); routes.Add("DefaultPage", new Route("Default.aspx", new MvcRouteHandler()) { Defaults = new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" }, { "id", null } } });