Got a child page using a master page which uses a master page. nested master page I guess. Trying to use FindControl to locate an image in the child page.
master page's ContentPlaceHolder id is ContentPlaceHolder1.
nested master page's ContentPlaceHolder id is ContentPlaceHolder2.
an image is in child page with an id of Image1.
The following in code-behind of the child page results in an error. This works if I only have 1 master page and use ContentPlaceHolder1
Image img = (Image)this.Master.FindControl("ContentPlaceHolder2").FindControl("Image1");
I'm thinking the id of the first master page must be in the statement. Tried several combinations but none work, as guesses usually don't
Go to the complete details ...