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. Advertisements

  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
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.