开发者

Master page controls in child pages?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜