Home > Archive > ASP > July 2004 > [Fwd: Re: Refreshing without resubmitting]
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[Fwd: Re: Refreshing without resubmitting]
|
|
| David C. Holley 2004-07-02, 3:55 am |
| "I would like like the user to be able to click the Refresh button
without resubmitting the form data."
Why would you want the user to be able to click on the Refresh button?
Do you mean that you want to PREVENT the from from resubmitting if the
button is pressed?
You may want to think about a solution involving a cookie. Basically,
have the ASP page check to see if the cookie value exists and/or the
value (maybe something like frmFeedbackSubmitted = true). If its true
then just bail out of the code, if its not true (or doesn't exist) then
process the code ending with writting the cookie to the PC.
David H
---ORIGINAL POST---
Nathan Sokalski wrote:
> When form data is submitted to an ASP page using the POST method, it is not
> visible in the URL, but it is still resubmitted if the user clicks the
> Refresh button. This can cause statistical data to be accidentally submitted
> multiple times, making the results incorrect. I would like like the user to
> be able to click the Refresh button without resubmitting the form data. Is
> there some way to "erase" the form data after it is used so that the Refresh
> button does not resubmit it? Any help would be appreciated. Thanks.
| |
| Bullschmidt 2004-07-02, 3:55 am |
| Often on an Edit page I'll let a user save changes as many times as he
wants.
And on an Add page, after the Save it automatically turns into an Edit
page or else redirects to an Edit page for that record with a
querystring.
Just some food for thought...
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
|
|
|
|
|