[CLOSED] Page.FindControl cannot find parent by id in Page_Load of UserControl that invoked by ResourceManger.RaisePostbackEvent

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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.
    Last edited by Daniil; Jan 07, 2014 at 1:43 PM. Reason: [CLOSED]

Similar Threads

  1. WakeUp parent page on usercontrol event
    By immanegiuv in forum 1.x Help
    Replies: 1
    Last Post: Dec 02, 2011, 10:36 AM
  2. Replies: 16
    Last Post: Jul 19, 2011, 3:53 AM
  3. Replies: 3
    Last Post: Aug 02, 2010, 11:06 AM
  4. Replies: 16
    Last Post: Jun 24, 2010, 2:41 PM
  5. Replies: 6
    Last Post: Mar 12, 2010, 12:34 AM

Posting Permissions