在子页面中查找母版页的控件ID [英] finding control id of master page in child page
本文介绍了在子页面中查找母版页的控件ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个母版页,并使用了一个名为LBLMessage的标签.
现在的事情是,我希望在子页面中使用LBLMessage控件.
请让我知道.
谢谢你
莫哈末wasif
Hi All,
I have a master page and have taken a Label named as LBLMessage.
Now the thing is this I want LBLMessage control in child page.
Please let me know.
thanking u
mohd. wasif
推荐答案
Label tb = (Label)Master.FindControl("LBLMessage");
tb.Text = "Something";
^ ]
这篇关于在子页面中查找母版页的控件ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文