G
Guest
Hi. I'm a little confused about the code that resides in the code-behind of a
MasterPage and the code that resides in the code-behind of the actual pages
that USE that MasterPage.
I'm noticing, for example, that the Page_Load on the specific page executes
before the Page_Load of its MasterPage. Is this right? But what I really want
to understand is VARIABLE SCOPE, etc. between the two.
For example: Is there a way for me to write code in the MasterPage which
will access the objects, tags, etc. of the specific Pages that USE that
MasterPage? So, can I write a function that lives with the MasterPage that
will look into the specific page at load time and do things based on the
tags, etc. on that page? If so, how?
Alex
MasterPage and the code that resides in the code-behind of the actual pages
that USE that MasterPage.
I'm noticing, for example, that the Page_Load on the specific page executes
before the Page_Load of its MasterPage. Is this right? But what I really want
to understand is VARIABLE SCOPE, etc. between the two.
For example: Is there a way for me to write code in the MasterPage which
will access the objects, tags, etc. of the specific Pages that USE that
MasterPage? So, can I write a function that lives with the MasterPage that
will look into the specific page at load time and do things based on the
tags, etc. on that page? If so, how?
Alex