Billpeng Space

技术源自生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

mvc的cshtml Request取不到值

Posted on 2014-02-02 03:33  billpeng  阅读(1243)  评论(0编辑  收藏  举报

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

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