Using VS2005, VB code behind,
I have a site that uses nested master pages. For the sake of this post lets call them main.master and nested.master respectively.
On my nested.master page I have an asp:Label control (but it could be any control) that I want needs to be dynamically changed by content pages having nested.master as its master page. Nromally (when not using nested master pages), I would use this code in my content page code-behind:
CType(Master.FindControl("lblMyLabel"), Label).Text = "Some information for you..."
Problem is that when I run this code .NET does not look into the main.master for the control but into nested.master instead. Is there a way for me to get a reference to the nested.master's page elements versus the main.master?