Reputation: 3280
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 .
i want to acces the label which is inside the master page in my web user control .
thanks
Upvotes: 3
Views: 7725
Reputation: 2763
There's a pretty nice article on this subject by 4guysfromrolla with tons of useful links like this one.
Upvotes: 3
Reputation: 4042
((Label)this.Page.Master.FindControl("YourLabelNameHere")).Text = "Hello";
Upvotes: 4