【问题标题】:can a site.master page have its own site.master pagesite.master 页面可以有自己的 site.master 页面吗
【发布时间】:2009-08-16 23:50:52
【问题描述】:

您是否可以让一个站点母版页本身具有一个站点母版页以允许共享“基本”代码层?

【问题讨论】:

    标签: asp.net-mvc


    【解决方案1】:

    是的,在创建母版页时,您可以为其指定母版页。

    (此外,您可以随意命名母版页 -> Temp.Master、master.master)

    【讨论】:

    • 如何引用不同主文件中的占位符部分?
    【解决方案2】:

    这个非常相似的问题的答案可能会有所帮助:Are there nested master pages in ASP.NET MVC? 是的,您可以在 MVC 中使用嵌套母版页,就像使用“经典”ASP.Net 一样。

    【讨论】:

      猜你喜欢
      • 2018-07-23
      • 1970-01-01
      • 2022-01-23
      • 2011-01-05
      • 2017-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多