table object converted to html

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
 
S

Sam Fields

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

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top