在mvc 里面,view 页面获取router路由的值

来源:互联网 发布:淘宝买二手电脑经历 编辑:程序博客网 时间:2024/06/05 18:50

如/lang/value/id

获取lang在view页面上

ViewContext.RouteData.Values["lang"]

 

 

<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>