用户控件中的母版页控件 [英] Master page controls in usercontrols
本文介绍了用户控件中的母版页控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们,
如何访问用户控制页面中的主控件.........
我没有在usercontrol和母版页之间放置关系
任何人都可以帮忙或建议我
Hi friends,
how to acess controls of master in user control page............
i didnot put relation between usercontrol and master page
can anyone help or suggest me
推荐答案
尝试一下.
Try this.
Page.Master.FindControl("controlidhere");
为此,您需要创建用户控件和扩展母版的网页
页面,然后调用该网页中的用户控件.
For that you need to create a user control and a web page extending master
page then call that user controls in that web page.
这篇关于用户控件中的母版页控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文