开发者

asp.net mvc querystring param

i call page like host/home/controller/id. now in view i want to get 'id', i do it like t开发者_如何学Chis

ViewContext.RouteData.Values["id"]

is any other short way?


The best place to retrieve it would be in your Model... if present, which I think it alway should...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜