473,770 Members | 7,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

postback and refresh!

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 3162
Rather than triggering a reload, why not trigger a postback instead?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"francois" <fr******@betti nghouses.com_NO SPAM> wrote in message
news:eP******** ******@TK2MSFTN GP10.phx.gbl...
like the following, but it is mainly a counter that will call :
window.location .reload()

<script>
<!--

var limit="0:30"

if (document.image s){
var parselimit=limi t.split(":")
/*
Auto Refresh Page with message in the footer
*/

parselimit=pars elimit[0]*60+parselimit[1]*1
}

function beginrefresh(){
if (!document.imag es)
return
if (parselimit==1)
window.location .reload()
else{
parselimit-=1
curmin=Math.flo or(parselimit/60)
cursec=parselim it%60
if (curmin!=0)
curtime=curmin+ " minutes and "+cursec+" seconds left until page
refresh!"
else
curtime=cursec+ " seconds left until page refresh!"
window.status=c urtime
setTimeout("beg inrefresh()",10 00)
}
}

window.onload=b eginrefresh
//-->
</script>

"Eric Lawrence [MSFT]" <e_********@hot mail.com> wrote in message
news:uK******** ******@TK2MSFTN GP10.phx.gbl...
What does your auto-refresh Javascript look like?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no

rights.


"francois" <fr******@betti nghouses.com_NO SPAM> wrote in message
news:#d******** ******@tk2msftn gp13.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 hope this is clear enough, if not I will reformulate

Best regards,

Francois



Nov 18 '05 #2

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

Similar topics

5
46019
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 form: <form action="process.asp" method="post"> 'GUI code </form> "postback" action happens when the user click the submit button, that means
10
9250
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 click event and I update session information to track the visibilty of some panels in a wizard type navigation ("Next >>" and "<< Back" buttons).. but the refresh button makes another event firing and takes the whole thing to a Choes.. ...
4
2437
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 the deleted items don't disappear on Postback, but only after a page refresh. I assume this is because the DataList is not redatabound unless !Postback. However, if I remove the if(!Postback) statement, the button's 'delete' method doesn't seem...
3
2578
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 a postback to occur which in turn triggers a sub in a user control... Error: Argument not specified for parameter e of Public Sub UploadDate(Sender As
4
1632
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, but when the function finishes the page needs to postback, but my function is in codebehind. What command do I need to call to say in my finnaly to postback my page??? -- D @ premierdata
4
2508
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 same thing as an Auto-postback? My page does not refresh with current data if you leave it, go to another page and return; but if you manually do a refresh of the page (using the Refresh button on the toolbar in IE), the page refreshes/reloads with...
3
11772
by: Simon Strandgaard | last post by:
Hi group, my setup: I have a GridView that extracts data from my table (a SqlDataSource). For each row, I have an 'edit' button and a 'delete' button. The 'edit' button opens a popup, through which one can insert and edit the table. The 'delete' button deletes the row.
4
5061
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 textbox and a dropdowlist: and a button to start something n code-behind: a refresh doesn't send any value back to the server but with a postback, the values are sent? But then, which role does Viewstate play in the postback proces?
6
1384
by: Jonathan Wood | last post by:
I'm getting into the habit of checking IsPostBack in my Form_Load handler and not updating the page if it is a postback. However, I notice that if I hit my browser's refresh button, the page refreshes without any data. Since when is a refresh a postback? Thanks.
0
9425
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
10228
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...
1
10002
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,...
0
9869
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
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...
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.