I have a problem with browser refresh, every time it refreshes, my qty in the cartitem table(sql database) add 1.
I have tried :
Response.buffer = true
response.clear
response.redirect request("script_name"
from a book, it uses COM object and also suggested to put it on top of the asp page, above it, it is only a condition check and add an item(mine is in the middle of the page). it is not working. I also tried:
<%Response.Expires = -1
Response.Expires = 0%> 'on very top
<meta http-equiv="PRAGMA" value="NO-CACHE"><BR>
<meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"><BR> 'the next
which is suggested from previous page, but is also not working. my code structure is like this:
......
if clicked update button then
....
if clicked continue button then
....
if you are first time in here then
insert datas into the cart page
insert datas into the cartitems page
elseif you are here before but not clicking the update
button then
loop compare the datas in database with the datas
from link
if it matches, update the cart
if not matches, insert at the end of the database
end if
the insertcart function
...
the updatecart function
my code is only asp w/o COM, can anybody help me on how to solve the refresh problem? thank you very much.
I have tried :
Response.buffer = true
response.clear
response.redirect request("script_name"
from a book, it uses COM object and also suggested to put it on top of the asp page, above it, it is only a condition check and add an item(mine is in the middle of the page). it is not working. I also tried:
<%Response.Expires = -1
Response.Expires = 0%> 'on very top
<meta http-equiv="PRAGMA" value="NO-CACHE"><BR>
<meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"><BR> 'the next
which is suggested from previous page, but is also not working. my code structure is like this:
......
if clicked update button then
....
if clicked continue button then
....
if you are first time in here then
insert datas into the cart page
insert datas into the cartitems page
elseif you are here before but not clicking the update
button then
loop compare the datas in database with the datas
from link
if it matches, update the cart
if not matches, insert at the end of the database
end if
the insertcart function
...
the updatecart function
my code is only asp w/o COM, can anybody help me on how to solve the refresh problem? thank you very much.