By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

postback and refresh!

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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******@bettinghouses.com_NOSPAM> wrote in message
news:eP**************@TK2MSFTNGP10.phx.gbl...
like the following, but it is mainly a counter that will call :
window.location.reload()

<script>
<!--

var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
/*
Auto Refresh Page with message in the footer
*/

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

function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page
refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>

"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.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******@bettinghouses.com_NOSPAM> wrote in message
news:#d**************@tk2msftngp13.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 discussion thread is closed

Replies have been disabled for this discussion.