2011-05-26 61 views

回答

0

返回布局页面文件作为模型的一部分。并从模型指定LayoutPage属性如下:

@{ 
     LayoutPage = ViewBag.LayoutPage; 
    } 

,请参阅基本剃刀页面布局概念

Layout/Master pages using Razor

以下链接