Wednesday, March 28, 2012

Control extenders and dispose

I'm having a problem using multiple control extenders on a single web control. The control is a table, and I have two custom extenders (which inherit from ExtenderControl) extending the table. Both of these extenders add event handlers to both the table and window. The problem I'm having is that the dispose method (which MUST be called to remove the window events on an asynchronous postback) is only being called on ONE of the extenders. This seems to always be the most recent extender (in markup - I've tried switching the order that the extenders are defined in markup to verify this behavior). On a full page postback, both dispose methods are always called. Is this some kind of bug? Or is there something I am doing wrong in my extender implementation(s)? I really can't post the full code of my extenders, but if neccessary I can try to create a simple example that displays the behavior.

Ouch - nobody has any idea? Should this maybe be posted in a different forum? Any additional info I can add? This is really causing me problems in my current project...

No comments:

Post a Comment