473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

postback and refresh problem

I have a ASPX form with a dropdownlist that makes a post back (to the same
page of course, just a normal asp.net postback)

That page also has an auto refresh javascript as it needs to refresh its
data automatically.

The problem is that when i click on the dropdownlist, i post back
information to the page, then after that the next refresh will brin me a
alert message populated by internet explorer saying:
"The page cannot be refreshd without resending the information. Click Retry
to send the information again, or click Cancel to return to the page that
you were trying to view."

I assume that IE, detects that the last request was a FORM POST (HTTP POST)
and then will automatically display this.

Is there anyone who knows how i can avoid this? I need to refresh the page
without this message appearing in the case i change the value on my
dropdownlist. And somehow my page need to reload through a postback or some
other way as I need to display some information that differs.

I hope this is clear enough, if not I will reformulate

Best regards,

Francois

Nov 18 '05 #1
1 2529
Jos
"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl...
I have a ASPX form with a dropdownlist that makes a post back (to the same
page of course, just a normal asp.net postback)

That page also has an auto refresh javascript as it needs to refresh its
data automatically.

The problem is that when i click on the dropdownlist, i post back
information to the page, then after that the next refresh will brin me a
alert message populated by internet explorer saying:
"The page cannot be refreshd without resending the information. Click Retry to send the information again, or click Cancel to return to the page that
you were trying to view."

I assume that IE, detects that the last request was a FORM POST (HTTP POST) and then will automatically display this.

Is there anyone who knows how i can avoid this? I need to refresh the page
without this message appearing in the case i change the value on my
dropdownlist. And somehow my page need to reload through a postback or some other way as I need to display some information that differs.


I would suggest to request the clean page again instead of refreshing.
The request can be done in javascript with
location.href = "nameofmypage.htm";

--

Jos
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
I always see the term "postback" from ASP book, but I am not sure if I fully understand the meaning. Here's my understanding so far, please correct me if any mistakes. Here's a typical html...
5
by: Scott Lyon | last post by:
I am having a strange problem. The program is a bit complex, but I'll try to simplify what I can. I apologize if this is complicated, but I think this would still be simpler than posting a bunch of...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
4
by: John | last post by:
Hi - I've got a couple of pages where a DataList is populated only if(!Postback). I have buttons in the datagrid that allow for the 'deletion' of items from that DataList. The problem is that...
3
by: Tim::.. | last post by:
Can someone please tell my why I get the following problem when I type the following piece of code! How do I get around this??? The idea is that when a user clicks a button on a form it causes...
4
by: DEWright_CA | last post by:
I need to be able to from C# launch a postback. I have a command button that launches a function, I also have a javascript function that then keeps you from firing any other objects on the page,...
4
by: Coleen | last post by:
Hi All :-) I have a web page that I need to refresh every time the page loads. I thought that the page automatically did a refresh/postback on the Page_Load event. Isn't refreshing the page the...
4
by: Dan | last post by:
Hi, i'm not sure to understand the difference between refreshing the pagina by clicking on 'refresh' in the browser and a postback. What i think it is: Suppose a page with a form containing a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.