开发者

MVC3 Multiple Viewstart Pages

Currently I have multiple layouts.

One for my default layout, one for the admin section and one for mobile

Rather than having

@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
in every View, I have a _ViewStart.cshtml in my Views folder with the default layout.

Is it possible to have another _ViewStart.csh开发者_JAVA技巧tml for instance in my Views/Mobile that changes the layout to my mobile layout for all folders in Views/Mobile


You might find the following blog post useful.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜