|
|
|
|
|
| | |
|
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Reload-Problem |
From: |
David Churchyard |
Date: |
2/14/2000 12:05:23 PM |
IP: |
194.217.53.159 |
Can you use a Session variable to check if the record has been upddate already...
1) in the code that created the source data...
<%
Session("Update")="Y"
%>
This sets the flag to say, yes update the database.
2) In the asp to add the data record, enter the condition....
<%
if Session("Update")="Y" then
.....
rest of add record code
.....
end if
Session("Update")="N"
%>
Once the record has been added, the variable will be set to "N", so if the page is refreshed, the routine will skip the add record section. If there is new data to be added, then the flag can be set to "Y" and the process starts over again.
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|