Multiple layouts for the Mvc application
Hi friends i was trying to use multiple layouts for a particular page but the problem i faced is that the entire application is now defaultly taking the lastest layout which i have added, though i have not used it as the layout for that particular page. What should id do to have the correct layout usage and also i have tried various methods of handling it in view start page its going to veing.
Dharmraj ThakurPosted Dec 27, 2017, 11:58 PM
{
Layout = "~/Views/Shared/_Layout.cshtml";
}
else
{
Layout = "~/Views/Shared/_Layout2.cshtml";
}