收到一只叮咚
楼主可以在global里做如下设置public class MvcApplication : System.Web.HttpApplication{public static void RegisterRoutes(RouteCollection routes){routes.IgnoreRoute(".axd/");routes.MapRoute("xiaohong", // Route name"Home/xiaohong", // URL with parametersnew // Parameter defaults);routes.MapRoute("chenghong", // Route name"Home/chenghong", // URL with parametersnew // Parameter defaults);routes.MapRoute( //注意Default一定要写到最后"Default", // Route name"//", // URL with parametersnew // Parameter defaults);}protected void Application_Start(){AreaRegistration.RegisterAllAreas();RegisterRoutes(RouteTable.Routes);}}