HI all,
I have pages in which users fill out fields then click a button which writes records to the database. Since the button causes a postback as well, the new records appear in a designated place on the page (below the entry section).
This is fine. However I just clicked the Refresh button (in IE), and the records were duplicated. The Refresh must be running the code behind the button. Is there a way to prevent a refresh? Or at least hook into the refresh and code away from the button click (if that is even possible).
Thanks,
KB
I have pages in which users fill out fields then click a button which writes records to the database. Since the button causes a postback as well, the new records appear in a designated place on the page (below the entry section).
This is fine. However I just clicked the Refresh button (in IE), and the records were duplicated. The Refresh must be running the code behind the button. Is there a way to prevent a refresh? Or at least hook into the refresh and code away from the button click (if that is even possible).
Thanks,
KB