I would like to add a WebUserControl control at runtime in the
CreateChildControls() method, but it's not working like I had hoped.
This technique works fine for WebControls:
protected override void CreateChildControls()
{
Header hdr = new Header();
Footer ftr = new Footer();
Controls.Add(hdr);
Controls.Add(ftr);
}
Header and Footer are both WebUserControl's. How would I go about
adding these controls at runtime?
Thank you in advance,
--
Sean
http://senfo.blogspot.com