Answer by Zaid O.Salameh for Nested Masterpages and .FindControl
try this string txt = ((TextBox)this.Master.FindControl("ContentIDName").FindControl("TextBox1")).Text;
View ArticleAnswer by Shaakir for Nested Masterpages and .FindControl
My scenario was as follows. Not sure if this setup is the correct one, but it allowed me to have master-submaster page setup, and be able to find control.MasterPage-> SubMasterPage -> ASPX...
View ArticleAnswer by Maulik Anand for Nested Masterpages and .FindControl
HyperLink hl = (HyperLink)Master.Master.FindControl("HyperLink3");This is the easiest way to find controls from the nested master pages.
View ArticleAnswer by etlds for Nested Masterpages and .FindControl
I usually do this:(TextBox)this.Master.FindControl("ContentplaceHolder1").FindControl("TextBox1");
View ArticleAnswer by rk. for Nested Masterpages and .FindControl
It is working as well for cross-page postback:ContentPlaceHolder ph = (ContentPlaceHolder)PreviousPage.Master.FindControl("ContentPlaceHolder");string txt =...
View ArticleAnswer by Alexis Abril for Nested Masterpages and .FindControl
When you're nesting master pages, you'll get an extra container "Content" you need to look through.As a result, if you're trying to use FindControl from a given child page the usual approach is...
View ArticleAnswer by somacore for Nested Masterpages and .FindControl
have you tried this.Master.Master.FindControl("controlname"); ?
View ArticleNested Masterpages and .FindControl
On one site, I'm only using a single level Masterpage and in a page using that master, I can do this.Master.FindControl("controlName") to access the control. Works fine.However, using the same code on...
View Article
More Pages to Explore .....