Groups | Blog | Home
all groups > asp.net > march 2005 >

asp.net : Save Page As Web Page


SMG
3/31/2005 11:18:44 PM
Hi All,
On my website I want to provide a link with 'Save Web Page as HTML"
I wrote the following code for the same and it works

" document.execCommand('SaveAs','1','TEST'); "

But it saves page content(HTML Code) and does not save images on the page
(as I had given relative path for the images in coding).


How Do I make my page save the content and images as well.

Regards,
Shailesh G

Kevin Spencer
4/1/2005 8:01:07 AM
In the browser, use File|Save As...

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

[quoted text, click to view]

Scott Allen
4/1/2005 9:46:09 AM
If only it were that easy, I'm sure Kevin would have pointed you in
the right direction!

--
Scott
http://www.OdeToCode.com/blogs/scott/

[quoted text, click to view]
SMG
4/1/2005 7:33:54 PM
Buddy I want it through a JavaScript command.

[quoted text, click to view]
In the browser, use File|Save As...

--=20
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

[quoted text, click to view]
AddThis Social Bookmark Button