0
这里有一个很奇怪的问题,我想知道它是否曾经发生过。 谷歌这样说,看起来很奇怪,没有人被它抓住。如何使UserControl使用母版页占位符?
这就是我们有:
母版页
Masterpage.master
blahblagblag
用户控制其页面必将提到,上述母版页
根据设计,我们需要从.ascx用户控件定义
SomeControl.ascx
<asp:Content ContentPlaceHolderID="phMaster"> // this will not work, and issue is to make it work
但是怎么做,考虑到用户控件不能绑定到masterpage?
任何想法?