|
-
Jan 16th, 2001, 11:03 AM
#1
Thread Starter
Hyperactive Member
1. How do I count the number of records in a recordset? I know it's easy, I just don't remember the strSQL. Thanks.
2. How do I make a page expire once it's been submitted?
Thanks.
If you think education is expensive, try ignorance.
-
Jan 16th, 2001, 11:24 AM
#2
Member
1. You can do something as simple as: count(*)in the query design grid in access or here is the SQL:
SELECT Count(*) AS Expr1
FROM your_table;
-
Jan 16th, 2001, 11:40 AM
#3
Thread Starter
Hyperactive Member
Thanks.
so it should look like this?
Code:
Dim intRecords
strSQL = "Select count(*) as intRecords FROM tblTable"
Is that right?
Does anyone know how to set the expiration on a page?
If you think education is expensive, try ignorance.
-
Jan 16th, 2001, 05:05 PM
#4
Hyperactive Member
in asp you can do this i think:
Code:
<%
'put this before any page output
Response.buffer = true
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
i am absolutly positive there is a meta tag to set the expiration period and i have used it before so i should know, but of course i dont.
-
Jan 16th, 2001, 06:46 PM
#5
Thread Starter
Hyperactive Member
I tried it and it didn't work. Thanks for trying though.
If you think education is expensive, try ignorance.
-
Jan 17th, 2001, 05:39 PM
#6
<META HTTP-EQUIV="REFRESH" CONTENT=60>
I think this should refresh the page every minute.
-
Jan 17th, 2001, 05:47 PM
#7
Hyperactive Member
Your right Sadovod, it does refresh the page every 60 seconds, but it doesnt make the page expire.
-
Jan 17th, 2001, 05:47 PM
#8
Thread Starter
Hyperactive Member
Yes it will. But what I need more than that is to make it no available any more. Does anyone know how to do that?
If you think education is expensive, try ignorance.
-
Jan 18th, 2001, 08:43 AM
#9
May I humbly suggest to place something like
onClick=" document.all.refreshMeta.httpEquiv='expires' ;
document.all.refreshMeta.content='-1' "
in your submit button, when user clicks it.
-
Jan 18th, 2001, 10:13 AM
#10
Thread Starter
Hyperactive Member
Thank you. I am not really good at javascript so I could also use a little help with the error I'm getting when trying it.
document.all.refreshMeta' is not an object
Thanks again for any help.
If you think education is expensive, try ignorance.
-
Jan 18th, 2001, 10:28 AM
#11
Guru
put this in your HTML <HEAD> section
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
-
Jan 18th, 2001, 11:18 AM
#12
Thread Starter
Hyperactive Member
Thanks again, but that didn't help either.
I'm assuming that one just stops it from being written to someone's cache right?
What I want to happen is have the page come up with a Timeout message instead of letting the person hitting the back button ever see that page again.
If you think education is expensive, try ignorance.
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
|