Can I have/chain more than 1 _Layout pages in MVC 3? for a cshtml page?

前端 未结 3 2126
长情又很酷
长情又很酷 2021-02-19 00:37

I have a layout page and some pages that use it. But I want to implement a navigation control on some of the sub-pages that use it. So I want to use another nested layout page.

3条回答
  •  悲&欢浪女
    2021-02-19 00:57

    You can solve this easily enough in one layout page by using sections. check http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx

提交回复
热议问题