ASP.Net内容页访问母版页(MasterPage)属性 必须通过内容页中的MasterTye指令,对母版页实施强类型化,即在内容页代码头的设置中增加如下指令<%@ MasterType VirtualPath="~/Master/MenuElement.master" %> 其中VirtualPath设置母版页URL地址。 母板页定义如下属性: 引用母板页做如下调用: master.LightBlueBg = "";