Click here to Skip to main content
15,844,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can any one tell me when I press ctrl+s and select "Save As Type" to Webpage Complete then whole page is saved on the client side in google chrome without including any other files like images, javascript etc.
Can The Same Thing be developed in clicking on the button, Let Suppose "Save As" then that current page be saved on the client side.

Please Provide snippet or good links to study.

I searched a lot but not getting good answer regarding this topic

I used the below snippet but not getting complete page

string p = "";
string r = @"c:/users/abc/desktop/testVersion.html";
System.Net.WebClient webclient = new WebClient();
webclient.DownloadFile(p, r);

Please Suggest, Thanks A Lot In Advance
Updated 6-May-14 2:08am
Thanks7872 6-May-14 2:29am    
If you have that functionality in all the browsers why you want it to be developed under Asp.Net? Why such functionality?
binadi007 6-May-14 2:50am    
Just Like to know how that works
KaushalJB 6-May-14 3:17am    
Try removing @ from string r
[no name] 6-May-14 7:37am    
Okay for this to work for you, you would probably need to write some client side code, not server side code.

1 solution

Why not? In most general form, it means using techniques of Web scraping:[^].

For further detail, please see my past answers:[^],
get specific data from web page[^],
How to get the data from another site[^].

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900