Hi,
Your TopLeftPane control doesn't need the literal control:
[ParseChildren(true)]
[PersistChildren(false)]
public class TopLeftPane : WebControl
{
public TopLeftPane(): base(HtmlTextWriterTag.Div)
{
}
private string _headertitle;
public string HeaderTitile
{
get { return _headertitle; }
set { _headertitle = value; }
}
protected override void Render(HtmlTextWriter writer)
{
writer.Write(this.HeaderTitile);
}
}
In the page surely your text should be along the lines of:
MyControl1.EnsureChildControls();
MyControl1.TopLeft_Pane="Header title";