摘要: @RenderSection在布局页中占位,此布局页的子页自己去定义自己的呈现块section。@RenderSection在布局页中占位,此布局页的子页自己去定义自己的呈现块section。子页面@section SubMenu{ Hello This is a section implement in About View.} @if (IsSectionDefined("SubMenu")) { @RenderSection("SubMenu", false)//为了防止因缺少节而出现异常,可以给RenderSection()提供第2个参数 } e 阅读全文
posted @ 2013-04-25 11:14 迅捷网络[来送福利] 阅读(541) 评论(0) 推荐(0) 编辑