I am trying to built a custom themed control that goes on a page that is themed. This works great, but my problem is I have controls that I render within the custom control that don't get themed:
protected
override void RenderContents(HtmlTextWriter output)
{
output.WriteLine("blah blah");
Image i = new Image();
i.ID = "test123";
i.SkinID = "go";
i.RenderControl(output);
}
I have tried many things and it seems the only way to get this to work is the control must reside on the page. If you dynamically create this control on the page, then you can run the "ApplyStyleSheetSkin" method.
Does anyone out there know how to make this work?
Thanks