This example demonstrates how to create dockable objects dynamically at
runtime. It is important to do this in the Init phase of the page
life cycle (ex. in Page.OnInit() method) to allow proper ViewState loading.
The content template of a dockable object can be populated with child controls
either using web user control or creating a custom template class that
implements System.Web.UI.ITemplate interface. Moreover, these methods are
available not only to dynamically created controls at runtime but for
declaratively created controls as well.