I have several child content pages and a single master page. I want to add some code in the master page to look for some specific controls within the child content page every time it loads. I see lots of documentation of how to access master page controls
from the child page, but nothing about how to access child controls from the master page.
I'm looking to do something like this in the master page (obviously there is no 'ChildPage' property on the master page):
Me.ChildPage.FindControl("MyButton")
maxmann
Member
95 Points
23 Posts
Accessing child controls from master page
Sep 07, 2005 04:58 PM|LINK
I'm looking to do something like this in the master page (obviously there is no 'ChildPage' property on the master page):
Me.ChildPage.FindControl("MyButton")
Any help would be great.
thanks!
Thilo
Member
10 Points
2 Posts
Re: Accessing child controls from master page
Sep 08, 2005 01:18 PM|LINK
From teh Masterpage:
ContentPlaceHolder1.FindControl("MyButton")