private string RenderControl(Control ctrl) { StringBuilder sb = new StringBuilder(); StringWriter sw = new StringWriter(sb); HtmlTextWriter hw = new HtmlTextWriter(sw); ctrl.RenderControl(hw); return sb.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)