Posted By

housecor on 10/30/11


Versions (?)

Convert server side html control to string

 / Published in: C#

  1. var sb = new StringBuilder();
  2. var sw = new StringWriter(sb);
  3. var htw = new HtmlTextWriter(sw);
  4. PriceTable.RenderControl(htw); //this holds an Table object
  5. return sb.ToString();

Report this snippet  

You need to login to post a comment.