获取子页面中的母版页文本框值 [英] get masterpage textbox value in childpage
本文介绍了获取子页面中的母版页文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i想要
获取子页面中的母版文本框值
i有一个母版页,里面有一个文本框。
我希望在子页面
i want to
get masterpage textbox value in childpage
i have a master page and have a textbox in it.
and i want that
masterpage's textbox value in child page
推荐答案
试试这个
Try this
TextBox txtbox = this.Master.FindControl("YOUR TEXTBOX ID") as TextBox;
Hai
试试这样
Hai
Try like this
TextBox1.Text = ((TextBox)Master.FindControl("TextBox1")).Text;
问候
Aravind
Regards
Aravind
Hi
试试这个
Hi Try this
MasterPage page = new MasterPage();
TextBox value= (TextBox)page.FindControl("textboxid in masterpage");
string value=value.Text;
这篇关于获取子页面中的母版页文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文