Quantcast
Channel: Nested Masterpages and .FindControl - Stack Overflow
Browsing latest articles
Browse All 8 View Live

Answer by Zaid O.Salameh for Nested Masterpages and .FindControl

try this string txt = ((TextBox)this.Master.FindControl("ContentIDName").FindControl("TextBox1")).Text;

View Article



Answer 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 Article

Answer 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 Article

Answer by etlds for Nested Masterpages and .FindControl

I usually do this:(TextBox)this.Master.FindControl("ContentplaceHolder1").FindControl("TextBox1");

View Article

Answer 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 Article


Answer 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 Article

Answer by somacore for Nested Masterpages and .FindControl

have you tried this.Master.Master.FindControl("controlname"); ?

View Article

Nested 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

Browsing latest articles
Browse All 8 View Live




Latest Images