views:

96

answers:

2

Say I'm currently in the code-behind of a root master page of the web site, and I need to know all the different master pages the page is going through to get to me. How do I do that?

this.Page does in fact give me a reference to the page. But when I get this.Page.Master, it seems to give me a reference to back to me even though I know other master pages are in between.

A: 

ASP.NET Page may contain only one master page. Are you talking about "other master pages between" as master page classes derived from your root master page class?

Tadas
Not derived, in the strictest sense, no. Master pages can have master pages too. I'm talking about looking at that hierarchy.
Daniel Henry
A: 

Nevermind, there was a problem in my loop. Accessing those properties as I was actually was giving me the right information. Sorry folks.

Daniel Henry