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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh problem

Status
Not open for further replies.
Aug 13, 2001
14
DK
I have a ASP page with a submit button labelled as <Save> which calls another ASP page to add a record to the database.

Upon saving, it adds the record and closes the entry window and then returns to the original page which lists the records.

The problem is that if one clicks Refresh (F5) on this original screen, system again adds a record and this continues each time <F5> is pressed.

Any help would be appreciated.

Thanks,
Rajkumar
 
After you have ran the code to save in the database, immediately redirect to the same page without any parameters.

i.e.

SQL = &quot;insert.......

response.redirect(&quot;this_page.asp?action=nothing&quot;)

hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top