解决方案 »

  1.   

    一样的原理啊!要不你更改下 路由。
                    url: "{controller}/{action}/{id}",
                    defaults: new { controller = "WebDefault", action = "Index", id = UrlParameter.Optional }
    这里应该可以设置吧。。
    或者给试图加个文件夹,对应的控制器也更着加!
      

  2.   

    那么如果项目里既有http://www.kulengidc.com/Article/ShowContent?ID=225这样的路径,也有http://www.kulengidc.com/Article/new/ShowContent?ID=33 这样的路径呢,路由怎么改
      

  3.   

    public static void RegisterRoutes(RouteCollection routes)
            {
                routes.IgnoreRoute("{resource}.axd/{*pathInfo}");             routes.MapRoute(
                    "Default", // 路由名称
                    "{controller}/{action}/{id}", // 带有参数的 URL
                    new { controller = "Home", action = "Index", id = UrlParameter.Optional } // 参数默认值
                );            routes.MapRoute(
                    "Default", // 路由名称
                    "{controller}/{action}/new/{id}", // 带有参数的 URL
                    new { controller = "Home", action = "Index", id = UrlParameter.Optional } // 参数默认值
                );        }