How to store output of an ASP page on server...

M

mavrick_101

The result of my asp page will not change for a week. So instead of querying
the database every time a user visits this page, an HTML page is sent to the
browser.

How can I accomplish this?

Thanks.
 
L

larrybud2002

mavrick_101 said:
The result of my asp page will not change for a week. So instead of querying
the database every time a user visits this page, an HTML page is sent to the
browser.

How can I accomplish this?

Do a SAVE AS in your browser of the snap shot you want to capture....
Change the link to point to that page or have your ASP page forward the
person to that page.

How do you KNOW the results won't change? I wouldn't do what you want
to do, however.
 
M

McKirahan

mavrick_101 said:
The result of my asp page will not change for a week. So instead of querying
the database every time a user visits this page, an HTML page is sent to the
browser.

How can I accomplish this?

Thanks.

You could have an ASP page that determines if a page exists for the new
week.

If it doesn't then generate a new week's page.

If it does then just Response.Redirect to it.

Pseudo-code:

sYEAR = DatePart("yyyy",Date())
sWEEK = DatePart("ww",Date())
sFILE = "page" & sYEAR & sWEEK & ".htm"
Set FSO
If Not FSO.FileExists(sFILE) Then
' generate sFILE
End If
Response.Redirect sFILE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top