By sending the contents of a DataTable in an html email, what is the preferred way to generate HTML from a DataTable?

Sending the contents of a DataTable to an html email address, what is the preferred way to generate HTML from a DataTable?

+4
source share
2 answers

Bind to a GridView or DataGrid and use the RenderControl method.

http://blogs.x2line.com/al/articles/859.aspx

+4
source

You can:

  • manually create an HTML table by cycling the table data
  • serialize the DataTable to XML ( WriteXml ) WriteXml and perform XSL to XML conversion to generate HTML
+2
source

Source: https://habr.com/ru/post/1309815/


All Articles