Dec 19, 2013, 2:49 AM
[CLOSED] Page.FindControl cannot find parent by id in Page_Load of UserControl that invoked by ResourceManger.RaisePostbackEvent
The reason I believe this doesn't work is that Page in this condition is a Page that is instantiated from a new SelfRenderingPage. Issue appears when I call UserControlRenderer.Render( cfg );
To solve this problem, you need to override SelfRenderingPage.FindControls to use the original Page. You might want to override many of the default Page methods and properties (Form for example is not available either).
At a minimum, one has every reason to believe that while within the UserControl's Page_Load, they still should have access to find controls.
To solve this problem, you need to override SelfRenderingPage.FindControls to use the original Page. You might want to override many of the default Page methods and properties (Form for example is not available either).
At a minimum, one has every reason to believe that while within the UserControl's Page_Load, they still should have access to find controls.
Last edited by Daniil; Jan 07, 2014 at 1:43 PM.
Reason: [CLOSED]