If your table however is within an asp.net page you'll have to acquire it as
a string that can be included as the html body of the mail. I would suggest
you take a read of this little snippet by Rick Strahl that explians
capturing output from a rendered web page.
The easiest way is usually to mark the table, by surrounding it with custom
tags !<--tablestarts-> !<--tableends-> then crop the string captured in the
render event using ther .net string methods.
or if yor doing it client side then wrap your table with a specific div
identifier and use javascripts innerHTML method and then post it to a page
that will invoke your mail method.
<div id= "myTable">This is my table.</div>
something like : document.getElementId("myTable").innerHTML .
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.