I found this sample online
http://support.microsoft.com/kb/292485#top about how to programatically save HTML to disk. This is soooo close to what I need, but isntead of saving to the users pc, I need to save a copy to the server in a folder that is part of my vb.net project.
Any suggestions on how to get this to work and save to the same server that is running the webpage? (Want to use this to create a sort of "receipt" of data displayed on screen.)
Another approach which might not be a an apt one, but would like to give you an idea...do a HttpWebRequest and capture html string and write it using File.Create()....
funluckykitt...
Participant
1469 Points
1547 Posts
Is it possible on a button click event in the browser, to save a copy of webpage on the server?
Apr 09, 2012 08:11 PM|LINK
I found this sample online http://support.microsoft.com/kb/292485#top about how to programatically save HTML to disk. This is soooo close to what I need, but isntead of saving to the users pc, I need to save a copy to the server in a folder that is part of my vb.net project. Any suggestions on how to get this to work and save to the same server that is running the webpage? (Want to use this to create a sort of "receipt" of data displayed on screen.)
DarrellNorto...
All-Star
86795 Points
9644 Posts
Moderator
MVP
Re: Is it possible on a button click event in the browser, to save a copy of webpage on the serve...
Apr 09, 2012 08:33 PM|LINK
Yes, check these two articles:
http://www.west-wind.com/weblog/posts/2004/Jun/08/Capturing-Output-from-ASPNet-Pages
http://www.4guysfromrolla.com/articles/122006-1.aspx
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible on a button click event in the browser, to save a copy of webpage on the serve...
Apr 09, 2012 08:41 PM|LINK
DarrellNorton... Those both look promising... will try these two and see what I come up with. Stay tuned. :-)
(Thank you for the links)
ramiramilu
All-Star
95503 Points
14106 Posts
Re: Is it possible on a button click event in the browser, to save a copy of webpage on the serve...
Apr 10, 2012 05:38 PM|LINK
Another approach which might not be a an apt one, but would like to give you an idea...do a HttpWebRequest and capture html string and write it using File.Create()....
Thanks,
JumpStart
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible on a button click event in the browser, to save a copy of webpage on the serve...
Apr 16, 2012 06:13 PM|LINK
Here's the sample I ended up following ... http://ondotnet.com/pub/a/dotnet/excerpt/ASP.NETCookbook_chap1a/index.html?page=2