Correct order of overrides for a composite control based on an abstract one
- by mattdwen
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.