Get parent page from user control

Oct 5, 2009 at 5:31 PM

How can I get the parent page from the user control loaded in the partial update panel? I always get the PanelHostPage back but this is not the page I'm requesting... If I try to get the parent of this page, I get null back. The _parentPage property is set to null after a postback inside the PartialUpdatePanel control. I need to access my parent page instance as it is on load because I need to call some properties and functions that I've implemented. I'm using a custom page instance (HN.Web.Page) that inherits from System.Web.UI.Page. As I understand, the user control loaded in the partial update panel is placed in a temporary page instance to be able using seperate ScriptManager instances, right?

Kind regards,

Sead