如果路径为:http://localhost:2317/food/1,这时用Request["id"]是取不到值的应该用:

Request.RequestContext.RouteData.Values["id"]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
相关资源
相似解决方案