How do I run masterpage pageload before child pageload (i want to access datamembers)
Posted on 2011-02-20
In our ASP.NET project, we have a master page which constructs certain objects in its Page_Load method.
We have another page that uses this Master page as its master page, which requires the objects constructed in the Page_Load method of the master page.
We have performed experiments which indicate that the Page_Load method of the child is being run before the Page_Load of the master page.
How would you recommend accessing those datamembers?
Note: Constructing the desired objects in the constructor of the master page is not an option, because we require data passed into Page_Load.