WebUserControl's Page_Load fires twice even though AutoEventWireup is set to false

Discussion in 'ASP .Net' started by ivan.svaljek@gmail.com, Oct 18, 2005.

  1. Guest

    I've got a page that dynamically loads user control.

    The problem is that control's load event executes twice. I've set
    AutoEventWireup of both control and webform to false.

    Only if I remove 'handles MyBase.load' from the control's load event
    will i get the desired effect (controls loads once). But if I then add
    the control using designer (not dynamically) it shows nothing.

    Here's the offending code:
    http://free-zg.t-com.hr/123/temp/WebApplication1.zip
     
    , Oct 18, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. H Branyan

    Page_Load fires twice

    H Branyan, Oct 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    687
    H Branyan
    Oct 22, 2003
  2. magister
    Replies:
    2
    Views:
    3,580
    magister
    Nov 1, 2004
  3. hazz
    Replies:
    2
    Views:
    1,661
  4. GJB
    Replies:
    0
    Views:
    550
  5. Johnny
    Replies:
    4
    Views:
    147
    kaeli
    Jan 19, 2004
Loading...

Share This Page