摘要: 方法一:FindControl方法(Master.FindControl("txt1") as TextBox).Text方法二:MasterType方法母版页中有一个ID=MasterLabel的TextBox,添加代码如下:<script runat="server"> private TextBox masterLabel; public TextBox MasterLabel { get { return masterLabel; } set { masterLabel = value; } } </script>子页面中 阅读全文
posted @ 2012-08-10 16:40 changkong910 阅读(200) 评论(0) 推荐(0)