[英]Access master page control on web user control
i have a aspx page which is inherited from the master page and i am dynamically adding the Webuser control inside the placeholder in aspx page . 我有一个从主页继承的aspx页面,我在aspx页面的占位符中动态添加Webuser控件。
i want to acces the label which is inside the master page in my web user control . 我想访问我的Web用户控件中母版页内的标签。
thanks 谢谢
((Label)this.Page.Master.FindControl("YourLabelNameHere")).Text = "Hello";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.