Hello all...
After long evening of "Mangaling" and mingling at company party in 'GolfiTech' Tel Aviv yesterday, I came up to work this morning and decided to share you with Master Page working.
In the current project that we are working on, we are using MasterPage (new feature in asp.net 2.0). This is a great control that does the work like 'header' and 'footer' user controls, for an example, (that are customied by the user), it comes to let us better and easier unified design to all (ao some of) the application pages.
Good tutorials and example how to create Master Page you can find: here.
And now to the issue of this post. In some of the application that I am working on, in addition to the super master page, there is a nested one. Now, when I tried to get the control (from the server side ofcrouse) that sits in the nested master page I couldn't find it, and this was a problem ofcourse... :)
The solution is to go up until you reach the super master page and after it to go down to the nested master page where the control is. The syntax is:
Page.Master.Master.FindControl("<Container Name>").FindControl("<Control Name>");
Where the <Container Name> is the placeholder that holds the page.
Hope this will help someday...