Solved

System.Net.Mail: How do I email the enitire contents of a rendered .aspx page?

Posted on 2009-05-11
3
180 Views
Last Modified: 2013-11-07
I have a wizard control that runs folks through a survey.  On the last step, they received a rsults page.  Is it possible to e-mail those results to the user from a textbox where they would enter their email address?

I can get the email working, but cannot stream or parse through the html (body) to send along.
0
Comment
Question by:devnewbee
  • 2
3 Comments
 
LVL 20

Expert Comment

by:informaniac
Comment Utility
have u tried this.Page.Form.InnerHTML?
0
 

Author Comment

by:devnewbee
Comment Utility
No, I have not.  Can you please provide an example?
0
 
LVL 20

Accepted Solution

by:
informaniac earned 500 total points
Comment Utility
mail.Body = this.Page.Form.InnerHtml;
            mail.IsBodyHtml = true;
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# Export DataGridView 4 37
JavaScript error 1 33
Set form below another form 3 25
VB.NET HttpWebRequest 12 30
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now