Control Event Handlers aren't called when used in PlaceHolder

Discussion in 'ASP .Net Building Controls' started by Craig, Mar 29, 2006.

  1. Craig

    Craig Guest

    I have a custom control that I'm adding to a Placeholder, when I click on a
    button within my control, it should fire an event handler. This works fine
    if I simply add the control to a page, but if I add the control dynamically
    to a placeholder, the event handlers don't get called.
     
    Craig, Mar 29, 2006
    #1
    1. Advertising

  2. Craig

    sam Guest

    Are you adding the control in page init or page load? You have to add
    it during one of those two phases.

    Post code if ur question is still not answered.
     
    sam, Mar 29, 2006
    #2
    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. Edward Bills
    Replies:
    0
    Views:
    454
    Edward Bills
    Aug 25, 2004
  2. S_K
    Replies:
    6
    Views:
    1,187
    Robert Dunlop
    Nov 8, 2007
  3. nail

    Build control in a placeholder or like a placeholder

    nail, Sep 10, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    345
  4. Andy Baldwin

    Event handlers called twice, or not at all

    Andy Baldwin, Oct 14, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    200
    vbMental
    Oct 29, 2004
  5. Tumurbaatar S.

    Event handlers called multiple times

    Tumurbaatar S., Nov 11, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    199
    Tumurbaatar S.
    Nov 11, 2005
Loading...

Share This Page