Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Bind an HTMLTable to SMTPMail

 
Thread Tools Search this Thread
Old 07-27-2006, 06:36 PM   #1
Default Bind an HTMLTable to SMTPMail


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
  Reply With Quote
Old 07-27-2006, 07:01 PM   #2
Scott McNair
 
Posts: n/a
Default Re: Bind an HTMLTable to SMTPMail
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
  Reply With Quote
Old 07-27-2006, 07:32 PM   #3
sloan
 
Posts: n/a
Default Re: Bind an HTMLTable to SMTPMail

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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46