"mavrick_101" <ma********@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
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