Asp.Net: Render Control to String Dynamically
From the forum. You create control dynamically, set properties and now you need to output html, rendered by this control only. How to do this ?
StringWriter tw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(tw); mycontrol.RenderControl(hw); Response.Write(tw.ToString());
Saturday, October 2, 2004 10:32 AM