Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2006, 07:57 PM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Emailing current page

I want to put a button on a web page that will enable the user to email the current page. I understand (and have working) the System.Net.Mail class, but is there a way I can take the current html code and apply it to mail.body? I figure once the button is clicked the html is gone, so can I rerender it from a URL and capture it for the mail.body?

Any help appreciated. As always, thanks in advance.

 
Old November 29th, 2006, 12:31 PM
Authorized User
 
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,
I think u can use the innerhtml property of document object to get the full content of the page. u can save this content the sent through post.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Emailing the contents of an aspx page Mykhan ASP.NET 2.0 Professional 3 December 15th, 2006 03:41 AM
Redirect to new page without closing current page peter2004 ASP.NET 2.0 Basics 5 June 5th, 2006 08:49 PM
print page that is not the current page crmpicco Javascript How-To 0 July 26th, 2005 09:11 AM
reference of prev. page in current page kasanar ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2005 02:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.