摘要: _ViewStart.cshtml运行于每一Page前, 所以通常在这里先设置Layout下面代码为特定的controller指定Index,Edit,Create的模板即Index对应 _Index_Layout, Edit对应_Index_Layout...@{var controller = ViewContext.RouteData.Values["controller"].ToString().ToLower();var action = ViewContext.RouteData.Values["action"].ToString().ToL 阅读全文
posted @ 2014-01-09 22:12 赤狐(zcm123) 阅读(517) 评论(0) 推荐(0) 编辑