Reputation: 26971
Sending a DataTable's content in an html email, what is the preferred way to generate HTML from a DataTable?
Upvotes: 4
Views: 2777
Reputation: 292465
You could either :
DataTable
to XML (WriteXml
method), and perform an XSL transform on the XML to generate HTMLUpvotes: 2
Reputation: 8502
Bind to GridView or DataGrid and use the RenderControl method.
http://blogs.x2line.com/al/articles/859.aspx
Upvotes: 4