Malin
02-23-2003, 10:18 AM
I have a database and a button. When clicking the button info is added to database.
My problem is this.. when user clicks the "register" button and afterwards clicks the "refresh" button in IE a question is asked... "the page cannot be reloaded without resending the information". If you click the "retry" button in this dialogue the info is posted AGAIN to the database and this causes redundancy.
How do I prevent this from happen? Is there a way to clear the information stored in the page when user clicks "register" button so if the user wants to click refresh no info is reposted.
I have tried to write something like Request.Form.cls (don't remember exaktly). I thougt this would clear the array in wich the info was stored but everything crashed :(
I could reload the page in the code under "register" button but I have this label with text "Info successfully registered to database" etc. If I reload the whole page this response to the user will disappear too.
Can anyone help?
Malin
My problem is this.. when user clicks the "register" button and afterwards clicks the "refresh" button in IE a question is asked... "the page cannot be reloaded without resending the information". If you click the "retry" button in this dialogue the info is posted AGAIN to the database and this causes redundancy.
How do I prevent this from happen? Is there a way to clear the information stored in the page when user clicks "register" button so if the user wants to click refresh no info is reposted.
I have tried to write something like Request.Form.cls (don't remember exaktly). I thougt this would clear the array in wich the info was stored but everything crashed :(
I could reload the page in the code under "register" button but I have this label with text "Info successfully registered to database" etc. If I reload the whole page this response to the user will disappear too.
Can anyone help?
Malin