how to prevent a page refresh to behave like a submit postback?

C

Carlos

Hi all,

I need to know how to prevent to repeat the operations
that happen when the submit button is clicked, when the
page is refreshed.

I noticed that if I refresh my page after the submit button is clicked,
the event is again activated even though I just refreshed the page,
did not push the button again..

Thanks,

Carlos.
 
H

Hans Kesting

Hi all,

I need to know how to prevent to repeat the operations
that happen when the submit button is clicked, when the
page is refreshed.

I noticed that if I refresh my page after the submit button is clicked,
the event is again activated even though I just refreshed the page,
did not push the button again..

Thanks,

Carlos.

What I sometimes use is this: after the submit action has completed,
issue a redirect to the (same) page. This will force an extra
roundtrip, but the browser "forgets" about that post-action (the
submit).

Hans Kesting
 

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

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top