table object converted to html

  • Thread starter Thread starter James Brett
  • Start date Start date
J

James Brett

Hi

I have a asp:table element on a page which I build up dynamically. When this
is done I would like to send an email containing the HTML source of the
table. Is there a way of getting the HTML content of the table?

Cheers
James
 
You could render the control to an HtmlTextWriter that writes to a
StringWriter and get the .ToString from the StringWriter.

Sam
 
Back
Top