Dynamic CompositeControl

Last post 06-20-2008 11:20 AM by mjconroy. 0 replies.

Sort Posts:

  • Dynamic CompositeControl

    06-20-2008, 11:20 AM
    • Loading...
    • mjconroy
    • Joined on 10-31-2004, 10:15 AM
    • Posts 2

    Goal:  Create a CompositeControl as a separate assembly - populate an ASPX Placeholder with the control based on user selection on page.

    So far:  I can create the control and it does inhabit the placeholder when I load it.  However, the button click event is lost.  I'm using the CompositeWebControl example from http://msdn.microsoft.com/en-us/library/3257x3ea(VS.80).aspx.

    If I create the assembly, add it to the toolbar, plop it on the page as a static control and run the app, the click registers fine. 

    When I load dynamically, the "Render" method gets called (I catch the breakpoint), but my _button_Click breakpoint never gets hit.

    On PostBack in the ASPX, I pull the CompositeControl from Session state before I plop it back into the Placeholder - so I assume it's the same instance.

    Please help...

    Thanks,
    Mike

Page 1 of 1 (1 items)
Microsoft Communities
Page view counter