开发者

Master page controls in child pages?

开发者 https://www.devze.com 2022-12-23 16:40 出处:网络
in my application i am using master page and c开发者_如何学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 acce

in my application i am using master page and c开发者_如何学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


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

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号