How can i replace a ascx control to a string tag in html ?I want to create a dynamic html template.This is my html \[code\]<div id="Detail_Container"> <div>Gallery 1</div> <load_gallery>G6</load_gallery> <div>Gallery 2</div> <load_gallery>G7</load_gallery></div>\[/code\]I tryied this :Control is rendering but my images doesnt load into the control.\[code\] StringBuilder sb = new StringBuilder(); HtmlTextWriter textWriter = new HtmlTextWriter(new StringWriter(sb)); UserControl objControl = (UserControl)LoadControl(inControlPath); objControl.GalleryId = "G5"; if (objControl != null) objControl.RenderControl(textWriter); string controlstr = tw.ToString();\[/code\]