Correct order of overrides for a composite control based on an abstract one

Posted by mattdwen on Stack Overflow See other posts from Stack Overflow or by mattdwen
Published on 2010-04-27T04:16:20Z Indexed on 2010/04/27 4:23 UTC
Read the original article Hit count: 324

Filed under:
|

I'm writing a set of C# composite web server controls for displaying dialog boxes.

I want to have one abstract class which handles the basic layout and things like titles of the control, then have a set of derived ones which render child controls at a specific point.

I forsee three distincts methods: renderOpeningHtml handled by the abstract class, renderCustomControls as done by the derived class, and renderClosingHtml by the abstract class again, except I can't figure the life cycle of a CompositeControl and what methods to use when.

© Stack Overflow or respective owner

Related posts about c#

Related posts about compositecontrol