Quantcast
Channel: How to access controls inside a nested master page? why does it behave differently from content pages? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by freedeveloper for How to access controls inside a nested master...

You can have absolute control of your content in both master page and nested page from your content page using the directives:<%@ MasterType VirtualPath="your_master.master" %><%@ Reference...

View Article



Answer by R0nn1e for How to access controls inside a nested master page? why...

ContentPlaceHolder cp = (ContentPlaceHolder)this.Master.Master.FindControl("ContentPlaceHolder1"); //base content place holder idLabel objLabel3 = (Label)cp.FindControl("lblNested"); //lblNested is id...

View Article

Answer by Ayyash for How to access controls inside a nested master page? why...

I read few things here:http://www.odetocode.com/Articles/450.aspxand found out that the nested page in the middle never calls Page_Load! instead, it fires a load event that you can catch to set...

View Article

Answer by Ronald Wildenberg for How to access controls inside a nested master...

This should work without any problems, so something else must be wrong. I just tried it inside a simple test project and I have no problems finding a control on the master page in both cases.I would...

View Article

How to access controls inside a nested master page? why does it behave...

Is there a difference between these two scenarios:(1) Accessing a property on a master page from a regular child(2) Accessing a property on a master page from a nested master pageI tried to access a...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images