Quantcast
Channel: How to access controls in Main Master page from content page in Nested Master Page - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Guven Sezgin Kurt for How to access controls in Main Master page...

This works in any case. especially if you dont know or care how many master pages you nested. Hope it helps :)MasterPage tmp = this.Master;while (tmp.Master != null){ tmp = tmp.Master;}var control =...

View Article


Answer by walther for How to access controls in Main Master page from content...

In PageMasterPageNested.aspx:TextBox txtBox = this.Master.Master.FindControl("txtMasterPageMaster") as TextBox;Should work. Give it a try. Hope it helps.

View Article

How to access controls in Main Master page from content page in Nested Master...

I have 2 master pages that are nested.this is main master page code for example:<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPageMaster.master.cs" Inherits="MasterPageMaster"...

View Article
Browsing all 3 articles
Browse latest View live