refreshing problem

J

JN

Hi all,

I have some pages where I need to delete/update database
records. Everything is fine until I hit the refresh button
on the browser (IE). This will cause the pages to repeat
the last action, which is deleting/updating the records
that have been already deleted/updated. Is there any way
to get around this beside redirecting to another page?

Thanks.
 
S

S. Justin Gengo

JN,

What about checking if that record still exists before trying to delete it?

If it updates a second time is that a real problem?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
G

George Ter-Saakov

Yep. Redirect to the same page.
Use Resone.Redirect(Request.RawUrl);


George.
 
G

Guest

well, what I meant by updating was adding, editting
records, and I certainly don't want duplicate records in
my database.
As for delete, yes, I did check the records before
deleting, but well, I would like to have a solution in
general for all update purposes, not just for delete.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top