1.config

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />

 

2.RouteConfig

routes.MapRoute(
"PRODUCT", // id伪静态
"{controller}/{_id}.html",// 带有参数的 URL
new { controller = "Product", action = "Detail", _id = UrlParameter.Optional }// 参数默认值
);
routes.MapRoute(
"Tie", // id伪静态
"{controller}/{_id}.html",// 带有参数的 URL
new { controller = "Tie", action = "Detail", _id = UrlParameter.Optional }// 参数默认值
);

相关文章:

  • 2022-12-23
  • 2021-08-22
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案