Solved

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

Posted on 2009-05-11
3
183 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
ID: 24361333
have u tried this.Page.Form.InnerHTML?
0
 

Author Comment

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

Accepted Solution

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

22 Experts available now in Live!

Get 1:1 Help Now