How do I specify different Layouts in the ASP.NET MVC 3 razor ViewStart file?
You could put a _ViewStart.cshtml file inside the /Views/Public folder which would override the default one in the /Views folder and specify the desired layout: @{ Layout = “~/Views/Shared/_PublicLayout.cshtml”; } By analogy you could put another _ViewStart.cshtml file inside the /Views/Staff folder with: @{ Layout = “~/Views/Shared/_StaffLayout.cshtml”; } You could also specify which layout should … Read more