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.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Dharmraj ThakurRank #577 · 4.2K reputationPosted Dec 27, 2017, 6:58 PM EST
{
Layout = "~/Views/Shared/_Layout.cshtml";
}
else
{
Layout = "~/Views/Shared/_Layout2.cshtml";
}