Surya sasidhar
Surya sasidhar

Reputation: 30293

Master page controls in child pages?

in my application i am using master page and child pages. my requirement is can i access the master page controls in child page exmaple in my master page i have a linkbutton how can access in childpage

Upvotes: 0

Views: 614

Answers (1)

Kyle Trauberman
Kyle Trauberman

Reputation: 25684

You can use the Page.Master property to access the masterpage.

LinkButton masterControl = Page.Master.FindControl("ControlID") as LinkButton;

Upvotes: 1

Related Questions