我可以使用单个内容页面连接两个母版页吗? [英] Can I Connect Two Master Pages With Single Content Page?

查看:103
本文介绍了我可以使用单个内容页面连接两个母版页吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个内容页面我想用它与两个母版页是否可能

解决方案

您不能在内容页面中包含两个母版页。但是这可以通过使用嵌套母版页来实现。



为此,创建第一个母版页并在secnd母版页中包含该母版页。你可以使用第二个母版内容页面中的页面。



希望它有所帮助,



问候,

AARIF SHAIKH


除非它们是嵌套的,否则不会同时出现。如果您的意思是您的内容页面可以根据某些条件使用不同的母版页,那么您可以以编程方式设置母版页,而不是依赖于标记中设置的页面。



https://msdn.microsoft.com/en-us/library/c8y19k6h.aspx [ ^ ]

I have one content page I want to use it with two master pages is it possible

解决方案

You can't include two Master Pages in a content page.However this can be achieved by using nested master page.

for this,create a first master page and include that master page in secnd master page.you can use second master page in the content page.

hope it helps,

Regards,
AARIF SHAIKH


Not at the same time unless they are nested. If you mean you have a content page that can use different master pages depending on some condition, then you can set the master page programmatically rather than relying on the page set in the markup.

https://msdn.microsoft.com/en-us/library/c8y19k6h.aspx[^]


这篇关于我可以使用单个内容页面连接两个母版页吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆