How to use dynamic master page in ASP.NET MVC RC 1.0

前端 未结 3 976
野性不改
野性不改 2021-01-03 16:18

I don\'t know how to using dynamic master page in ASP.NET MVC RC 1.0. Please help!

3条回答
  •  攒了一身酷
    2021-01-03 16:45

    You can specify the name of the master page when using the View() helper method:

    return View("About", "AlternateMaster", model);
    

    AlternateMaster would resolve to ~/Views/Shared/AlternateMaster.master

    Found this here

提交回复
热议问题