Solved

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

Posted on 2009-05-11
3
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What are MicroServices? 4 67
Help with viewing image in ReportViewer 14 27
Pdf not loading 2 39
SQL State HYT00. Timeout expired proplem 8 43
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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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