My requirement is to save the webpage onto my harddisk on a button press. Later i want to email that webpage the way i have saved.
Kindly tell me how to save the webpage on to the harddisk programmatically using asp.net.
Thanx in advance
Ali Zahid.
My requirement is to save the webpage onto my harddisk on a button press. Later i want to email that webpage the way i have saved.
Kindly tell me how to save the webpage on to the harddisk programmatically using asp.net.
Thanx in advance
Ali Zahid.
saving aspx file to harddisk
Ignez
rodrb
Hi!
Do you want to save it on your local hard drive (of the client) or on the hard drive of the server
The best place for asking ASP.NET questions is on the ASP.NET community site, and in the forums there. Check out
http://www.asp.net/welcome.aspx tabindex=1&tabid=39.HTH,
PEte
mrtn
Override the Render method in your Page class. call Base.Render - and you should then be able to get the rendered contents from the writer. Or you can simply create your own StreamWriter and pass it to the base.Render method (and if you need to spit the contents out to the page also) then you will have to reread and write it to the Writer that was passed.
Hope this makes sense. Its too early in the morning :)
Chris Sells
MarcD has the right answer!
HTH,
PEte