母版页和内容页之间传值

把内容页中的内容传值到母版页中

 TextBox txt = this.Master.FindControl("txtMaster") as 

TextBox;

 txt.Text = "内容";

或者:

 TextBox txt = (TextBox)((MasterPage)Master).FindControl("txtMaster");
 txt.Text =

 "内容";

 

 

posted @ 2012-10-26 15:10  shuangyihaiying  阅读(251)  评论(0编辑  收藏  举报