Implement multiple section in layout.cshtml
Assume that I have a partial layout called “_Layout.cshtml” and I have a sidebar call “Sidebar.cshtml” both of them are located in “/Views/Shared”.
I have few pages such as Login, Index,Account Maintenance, Manage Course and etc.
I would like to make that “Sidebar.cshtml” appear in “Account Maintenance.cshtml” and “Manage Course.cshtml” but the “Index.cshtml” and “Login.cshtml” should not appear the “Sidebar.cshtml”.