母版页和内容页之间传值
把内容页中的内容传值到母版页中
TextBox txt = this.Master.FindControl("txtMaster") as
TextBox;
txt.Text = "内容";
或者:
TextBox txt = (TextBox)((MasterPage)Master).FindControl("txtMaster");
txt.Text =
"内容";
把内容页中的内容传值到母版页中
TextBox txt = this.Master.FindControl("txtMaster") as
TextBox;
txt.Text = "内容";
或者:
TextBox txt = (TextBox)((MasterPage)Master).FindControl("txtMaster");
txt.Text =
"内容";