![]() |
|
|
|||||||
![]() |
ASP Net - Bind an HTMLTable to SMTPMail |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi all,
I have a page that displays an order confirmation to the end-user whenever he places an order. On that order is a table generated using System.Web.UI.HtmlControls.HtmlTable. My company also wants to be able to email the contents of the page (including the table). Unfortunately I can't find a way to bind HtmlTable to an SMTPMail.Body. Is there a way to do this? If not, is there a way to pull the HTML out of the table in string-format and simply add it to the body that way? I suppose I could just recreate the table as a string by looping through the rows and columns and then append that, but I'd like to avoid it if possible. Regards, Scott McNair Scott McNair |
|
|
|
|
#2 |
|
Posts: n/a
|
Scott McNair <> wrote in
news:Xns980D804E488CEqwerty@207.46.248.16: > Unfortunately I > can't find a way to bind HtmlTable to an SMTPMail.Body. I found out how, based on another post I found here: http://openmymind.net/FAQ.aspx?documentId=45 Thanks to all for reading my post. -Scott Scott McNair |
|
|
|
#3 |
|
Posts: n/a
|
Thanks for posting the followup.. That's pretty sweet. Scott, you can also check my blog http://sholliday.spaces.msn.com 2/8/2006 for dealing with the different authentiaction models for sending emails. (none, basic and ssl) "Scott McNair" <> wrote in message news:Xns980D847A3357Dqwerty@207.46.248.16... > Scott McNair <> wrote in > news:Xns980D804E488CEqwerty@207.46.248.16: > > > Unfortunately I > > can't find a way to bind HtmlTable to an SMTPMail.Body. > > I found out how, based on another post I found here: > > http://openmymind.net/FAQ.aspx?documentId=45 > > Thanks to all for reading my post. > > -Scott sloan |
|