473,748 Members | 10,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic Refresh of page (using a timer and .reload) causes messagebox.

UJ
I have a page with code in it to automatically refresh the page every 30
seconds. Works great. But if I do anything on the page (which resets the
timer) and then it times out to refresh, I get the 'The page cannot be
refreshed 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.'

Anybody know of any way to stop that message from coming up?

Like I said - if you don't do anything - it works fine. Make any kind of
change to the page and it produces this error.

TIA.
Nov 19 '05 #1
2 2632
The message comes as a result of Refreshing a page that was returned as the
result of a POST Request. IOW, probably as a result of a PostBack. What I
would do is, if the Page is Posted Back, do a Response.Redire ct to return
the Page to the client. Of course, you will have to figure out how to
restore the state to the Page in a different way. Session and QueryString
come to mind offhand.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"UJ" <fr**@nowhere.c om> wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl...
I have a page with code in it to automatically refresh the page every 30
seconds. Works great. But if I do anything on the page (which resets the
timer) and then it times out to refresh, I get the 'The page cannot be
refreshed 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.'

Anybody know of any way to stop that message from coming up?

Like I said - if you don't do anything - it works fine. Make any kind of
change to the page and it produces this error.

TIA.

Nov 19 '05 #2
"UJ" <fr**@nowhere.c om> wrote in news:efgBc80nFH A.1148
@TK2MSFTNGP12.p hx.gbl:
I have a page with code in it to automatically refresh the page every 30
seconds. Works great. But if I do anything on the page (which resets the
timer) and then it times out to refresh, I get the 'The page cannot be
refreshed 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.'

Anybody know of any way to stop that message from coming up?


Perhaps consider using Javascript remoting to update the page instead.

If you're using ASP.NET 2.0, it's called Client Side Postbacks.

Otherwise take a look at:

http://www.ashleyit.com/rs/
http://www.thycotic.com/dotnet_remotescripting.html

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #3

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

Similar topics

10
6472
by: Conax | last post by:
Hi there, My boss is hoping that I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he doesn't want the whole page to be refreshed so that buttons and images around the information do not get reloaded each time. Is this really possible? Other pages on this site don't use frames, so this page can't use frams too. Creating an ActiveX...
2
23510
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
0
1682
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in another window, the web page quietly refreshes in the background. Hosted in Outlook, the refresh causes Outlook to come to the front on every refresh. Or in XP, causes the toolbar icon to flash.
5
2711
by: Bryan Young | last post by:
I am trying to smoothly refresh a page on an interval. I am using setInterval to set this up. When the interval expires, I do a document.form.submit(). When this line of code runs, Internet Explorer crashed with exception code 0xc0000005 mshtml.dll at address 0x000000007d55833f. This is IE 6 SP2 on Windows XP with all the latest patches installed. The same thing happens on Windows 2003 Server. See sample code below. Any ideas? ...
7
1924
by: fh | last post by:
hello! I 've a found way to reload my page automatically every n seconde using this code Response.AppendHeader("Refresh", "4"); it works fine but I wish to do the same with only a part of my aspx page that will reload to the server all the rest of the page has to stay static if I use a web User control but it reload all the page?
3
2113
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to public internet html page, but how can I do this in a loop? do I need to write a console application to make it work? thanks
12
6039
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
5
3750
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{ window.opener.location = 'Default.aspx?Reload=100'; }</script>"); Response.Write("<script language='javascript' type='text/javascript'{ self.close(); }</script>");
4
5285
kelleyvanevert
by: kelleyvanevert | last post by:
Hello everyone, This question is often asked, and I know there are lots and lots of answers that I could be using, but I just want a clear good answer. I am making a website (for playing a game called Go). It has a page for each game of course. I'm making the website in PHP and MySQL, I know that for 'real-time' games another solution would probably be better, but I'm learning to master php and MySQL. The game is shown via the <canvas>...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.