<a href="/user/resume/index/11">
   <span class="title bold">我的 @Request.RequestContext.RouteData.Values["id"]</span>
 </a>

如上代码如果想取最后的ID值11,只要如下做就行了:

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

没有路由则直接用@Request.QueryString["id"]

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-07-17
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2022-01-19
  • 2021-05-30
  • 2021-06-10
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案