开发者

Can a page inherit multiple master pages?(ASP.NET)

Can 开发者_如何学Pythona page inherit multiple master pages?(ASP.NET)


No but you can use nested master pages. Here is some reference Nested ASP.NET Master Pages


A single page cannot inherit two different master pages.
If you think about it, that should be relatively obvious. How could it be possible? What would it do?

However, one master page can inherit a second master page.


You can nest as many master pages as you would like.

MSDN link on how to nest master pages


A single page cannot inherit two different master pages..

But, a master page can be based on another master page (so you have chained inheritance)..


A single page inherits only one master page, or we can say that a single page cannot inherit two different master pages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜