Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page refresh creates duplicate db records

Status
Not open for further replies.

Trusts

Programmer
Feb 23, 2005
268
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top