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.cshtml 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With