refresh problem

F

Ford Desperado

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?
 
C

chanmmn

How many pages have this problem? If that is the only page then it is good
for you to check so of the properties of your control.

chanmm
 
S

S. Justin Gengo

This is browser functionality. Unfortunately I don't think there is a
workaround unless we can get the browser programmers to re-code the way this
works I think we're out of luck.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
C

Craig Deelsnyder

Ford said:
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).
 

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

Top