G.S Bhangal
G.S Bhangal

Reputation: 3280

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 .

i want to acces the label which is inside the master page in my web user control .

thanks

Upvotes: 3

Views: 7725

Answers (2)

Stéphane Bebrone
Stéphane Bebrone

Reputation: 2763

There's a pretty nice article on this subject by 4guysfromrolla with tons of useful links like this one.

Upvotes: 3

Ian Routledge
Ian Routledge

Reputation: 4042

((Label)this.Page.Master.FindControl("YourLabelNameHere")).Text = "Hello";

Upvotes: 4

Related Questions