C是页面,B是母版
- dim strC as string
- strC=ctype(page.master.findcontrol("txtB"),textbox).text
这是弱引用类型
还可以在C页面的类容里添加
- <%@ MasterType virtualPath="B.master">
然后可以访问B中的属性,如在C页中可以这样:
- strC=page.master.GetLoginTime()
其中GetLoginTime()是B母版中的属性
C是页面,B是母版
这是弱引用类型
还可以在C页面的类容里添加
然后可以访问B中的属性,如在C页中可以这样:
其中GetLoginTime()是B母版中的属性