Re: refresh problem
From: Craig Deelsnyder (cdeelsny_at_NO_SPAM_4_MEyahoo.com)
Date: 06/17/04
- Next message: Miguel Dias Moura: "How to change and image?"
- Previous message: chanmmn: "Re: asp.net on NT4?"
- In reply to: Ford Desperado: "refresh problem"
- Next in thread: S. Justin Gengo: "Re: refresh problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 09:57:05 -0500
Ford Desperado wrote:
> Hi,
>
> I've got an ASP.Net page that displays some data from a database. I
> have a refresh button on the page that works just fine. If I try to
> utilize the browser's Refresh button, I get an annoying message "the
> page cannot be refreshed without resending the information". When I
> hit "Retry", Page_Load method is called, and IsPostBack is true.
>
> If I change method="post" to method="get", then there is no annoying
> message, and page_Load is called with ISPostBack=false, which is
> perfect. but the rest application won't work, because a lot of
> functionality depends on
>
> I know it's been discussed here many times, but I wasn't able to find
> an answer
> Any ideas?
The message is annoying, but it's the way IE decided to handle
refreshing a page that was posted (a form was submitted). To reload the
current page, it wants to resend the inputs on the 'previous page', and
in cases for example where people are buying something online, you would
want to warn them that their form is being submitted again (duplicate
purchase).
I don't know of a workaround, although I'm sure there's some registry
hack that could disable it on the client's side, but that is usually not
an option for you. Interestingly, I don't know if Opera does this...I
seem to notice that it never has such a warning (whereas Firefox does).
-- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET
- Next message: Miguel Dias Moura: "How to change and image?"
- Previous message: chanmmn: "Re: asp.net on NT4?"
- In reply to: Ford Desperado: "refresh problem"
- Next in thread: S. Justin Gengo: "Re: refresh problem"
- Messages sorted by: [ date ] [ thread ]