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.
精彩评论