refreshing problem

  • Thread starter Thread starter JN
  • Start date Start date
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.
 
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
 
Yep. Redirect to the same page.
Use Resone.Redirect(Request.RawUrl);


George.
 
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.
 
Back
Top