|
-
May 3rd, 2006, 09:39 AM
#1
Thread Starter
Lively Member
Save Dynamic Page Programmatically
Hi,
I have an asp.net page, that is generated dynamically with response.writes, etc.
I need to be able save this page, possibly to the root.
The reason why is that everytime the user opens the page, new dynamic data will be genereted, and thus if they close the browser without saving, then they will not be able to get that information again.
Any help will be very appreciated.
Thanks
-
May 3rd, 2006, 11:30 AM
#2
Re: Save Dynamic Page Programmatically
Do you display this data in some type of DataSet? And how important this data is?
If it's very important to keep this data, you can do it e-commerce style. Save the results on a database, for them to retrieve it later.
For example, if you are binding a DataSet to a Datagrid, you can save the XML of the DataSet in the db, for a very quick later retriaval.
Just an idea...
HTH
HoraShadow
EDIT:
Oh, I just read you are using response.write, so I guess my way doesn't work, unless you can think of a way to adapt it.
Last edited by HoraShadow; May 3rd, 2006 at 11:34 AM.
I do like the reward system. If you find that my post was useful, rate it.
-
May 3rd, 2006, 08:07 PM
#3
Thread Starter
Lively Member
Re: Save Dynamic Page Programmatically
thanks for the info.
I will keep digging.
-
May 4th, 2006, 04:15 PM
#4
Re: Save Dynamic Page Programmatically
You can use a WebRequest class object to request the page you want, passing in whatever headers you want, receiving the response in a stream and then saving the stream to an HTML file.
-
May 4th, 2006, 10:46 PM
#5
Thread Starter
Lively Member
Re: Save Dynamic Page Programmatically
 Originally Posted by mendhak
You can use a WebRequest class object to request the page you want, passing in whatever headers you want, receiving the response in a stream and then saving the stream to an HTML file.
awesome. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|