By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,334 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,334 IT Pros & Developers. It's quick & easy.

refreshing problem

P: n/a
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.
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
"JN" <JN@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
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.

Nov 18 '05 #2

P: n/a
Yep. Redirect to the same page.
Use Resone.Redirect(Request.RawUrl);
George.

"JN" <JN@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
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.

Nov 18 '05 #3

P: n/a
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.

-----Original Message-----
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
"JN" <JN@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
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.

.

Nov 18 '05 #4

P: n/a
I see. Thanks, George.
-----Original Message-----
Yep. Redirect to the same page.
Use Resone.Redirect(Request.RawUrl);
George.

"JN" <JN@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
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.

.

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.