routes.MapRoute(
    "Item_List", // 路由名称
     "Item/ItemList_{p}_{Code}.html", // 带有参数的 URL
     new {
           controller = "Item",
           action = "ItemList",
           p = 1
      } // 参数默认值
 );
Url.Action(“ItemList”, “Item”, new { Code = item.Code })
得到的url:http://localhost:3035/Item/ItemList_1_GANHUO.html
结果调试报错说无法找到资源,请问这是怎么回事,请求方法也进不去
<system.webServer>
 <modules runAllManagedModulesForAllRequests="true"></modules>
 <validation validateIntegratedModeConfiguration="false"/>
 </system.webServer>
配置文件里加上<modules runAllManagedModulesForAllRequests="true"></modules>就可以了