I know I'm missing something here.
I've created a custom Web Control and I am trying to create child
controls in it. When I create child controls in it (I know of the
whole ReadWriteControlDesigner issue, so all child controls are
created on the html side) the design view renders ok. But when I click
on the custom control, change a property and go back to the html view,
the child controls have disappeared! Only the custom control's opening
and closing tags remain. The weird thing is that the design view still
shows the child controls (since I RenderChildControls() in the custom
controls Render method).
I have the PersistChildren(true) tag at the top of the custom control,
and I call EnsureChildControls() in all of the get/set methods and at
the beginning of the Render method.
What am I missing?