• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

asp.net save page as html

Hi,


Is it possible to save my current .aspx page as html? By any means, like invoke save as dialogue or capture html of page?

Thank you
0
mkk39
Asked:
mkk39
1 Solution
 
chapmanjwCommented:
In an automated fashion or just one time?  You could hit CTRL + S on your keyboard to save it while viewing in IE.
0
 
mkk39Author Commented:
How can I do it using asp.net?
0
 
chapmanjwCommented:
In ASP.NET you can do a HttpWebRequest to get the content of the HTML that would be sent to a browser and then do whatever you want with it:

string stringURL = "http://www.google.com";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(stringURL);
request.Method = "GET";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
0
 
Alpha AuCommented:
if  you only need the generated html of you asp.net site, you may use thrid party tools, like HTTrack Website Copier

http://www.httrack.com/

0
 
sindhuxyzCommented:
Put all tags of html along with data, write it like file with html extension. The html file will be created.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now