UserControl click event won't fire

Discussion in 'ASP .Net Building Controls' started by Mark Sisson, Dec 2, 2003.

  1. Mark Sisson

    Mark Sisson Guest

    I've got a custom usercontrol (UC1) that dynamically loads another
    custom usercontrols (UC2) during it's Init event. Both controls have
    LinkButtons with click events. The LinkButton from UC1 properly goes
    to it's click-event handler but the LinkButton from UC2 does not fire
    it's associated click event.


    Are there problem in having nested Usercontrols fire events if they're
    created through code?

    TIA
     
    Mark Sisson, Dec 2, 2003
    #1
    1. Advertisements

  2. Mark Sisson

    Thijs Guest

    I think you're experiencing the same problem as I am. The problem is that
    ASP.NET is unable to restore the viewstate of a dynamically loaded control
    after a postback. I'm searching for a way to do this manually now.

    Regards,

    Thijs

    "Mark Sisson" <> schreef in bericht
    news:...
    > I've got a custom usercontrol (UC1) that dynamically loads another
    > custom usercontrols (UC2) during it's Init event. Both controls have
    > LinkButtons with click events. The LinkButton from UC1 properly goes
    > to it's click-event handler but the LinkButton from UC2 does not fire
    > it's associated click event.
    >
    >
    > Are there problem in having nested Usercontrols fire events if they're
    > created through code?
    >
    > TIA
     
    Thijs, Dec 2, 2003
    #2
    1. Advertisements

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. Chad
    Replies:
    4
    Views:
    8,650
  2. roni
    Replies:
    2
    Views:
    552
  3. Amy
    Replies:
    0
    Views:
    1,283
  4. CalSun

    dynamic loading - click event won't fire

    CalSun, Jul 8, 2005, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    235
    CalSun
    Jul 20, 2005
  5. Mark Sisson

    UserControl click event won't fire

    Mark Sisson, Dec 2, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    518
    Chris Thayer
    Dec 10, 2003
  6. Mark Sisson

    UserControl click event won't fire

    Mark Sisson, Dec 2, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    205
    Mark Sisson
    Dec 2, 2003
  7. DanG

    onTextChanged won't fire in UserControl

    DanG, Jul 14, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    446
    Alessandro Zifiglio
    Jul 17, 2006
  8. Dave E

    Why click won't fire?

    Dave E, Mar 23, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    203
    wmain
    Mar 24, 2007
Loading...