I have 2 master pages and a single content page. How do I show employees one master page and customers a different one?
This is for an asp.net mvc app.
I have 2 master pages and a single content page. How do I show employees one master page and customers a different one?
This is for an asp.net mvc app.
You can specify the master in the View method in your action:
return View("MyPage", isCustomer ? "CustomerMasterPage" : "EmployeeMasterPage")