views:

98

answers:

1

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.

+2  A: 

You can specify the master in the View method in your action:

return View("MyPage", isCustomer ? "CustomerMasterPage" : "EmployeeMasterPage")
Tim Scott