473,396 Members | 2,013 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,396 software developers and data experts.

Help?? The page cannot be refreshed without resending ...

I'm constructing an ASP app with a frameset on the home html page. From
frame A I need to referesh the page in frame B when a button click occurs on
a button in Frame A (server side event handler).

To accomplish this I've included some client side script in the page being
built in frame A such that whenever it is received by the browser it reloads
frame B's page. The problem is that (sometimes) this sequence of events
produces a dialog box with the message:

"The page cannot be refreshed without resending ..."

This happens when web controls on page B have been changed; i.e., there is
some viewstate, but if these controls haven't changed before then I don't
get this message. The controls in question are DropDown controls and they
have their AutoPostBack set to true.

Can anyone explain why this dialog appears and what I might do to avoid
having it appear?

Thanks in advance,
Bill
Nov 18 '05 #1
5 5173
620
"Bill Cohagan" <bi**@teraXNOSPAMXquest.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
The controls in question are DropDown controls and they
have their AutoPostBack set to true.


That's the key to your problem, altho really what you are experiencing is
probably considered to be "by design".

Let's say you perform a postback on page x, such as the user is doing when
they modify a dropdown in frame B. When the result comes back, the browser
no longer sees that page as 'page x', it sees it as 'special content I got
by submitting [this form data] to page x'.

Now if you hit 'refresh', the browser has a problem. It doesn't think it's
looking at a page, it things it's looking at some special content that can
only be created by submitting [this form data] to page x. And the only way
the browser knows how to 'refresh dynamic content I got by submitting [this
form data] to page x' is to re-submit [this form data] to page x.

If the message were painfully verbose, it might say something like, "I'll
refresh this for you, but just so you know... this page was actually the
result of submitting form data to some page, so the only way I can really
'refresh' it is to re-submit the original form data to that page again...
ok?" And it asks you because, in theory, by now your session variables
might be different, server variables might be different, and the result
*might not* really come out the same this time. So it's kind of warning you
that it's about to do something potentially funky.

I dunno how you can get a client to supress this message, other than simply
avoiding it all together by ensuring you don't attempt to 'refresh' the
result of a postback.

But my question is, why refresh frame B?

Nov 18 '05 #2
Thanks for the quick response. In answer to your question, why refresh B?,
I'm using frame A to contain a grid used as a "picklist". Clicking the Add
button for an item (row) in that grid adds it to a grid in the B frame; thus
the need to reload B's page from the page in A. I'm using two frames because
there are other activities in the A frame and (also) I want to be able to
scroll frame A independent of frame B. Perhaps there's a better way to do
this and I'm certainly open to suggestions. I'm pretty much in the learning
stages on ASP.Net (and HTML to a certain extent.)

Thanks again,
Bill

"620" <62*@200.NET> wrote in message
news:0u********************@speakeasy.net...
"Bill Cohagan" <bi**@teraXNOSPAMXquest.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
The controls in question are DropDown controls and they
have their AutoPostBack set to true.>
[snip] But my question is, why refresh frame B?

Nov 18 '05 #3
Hi Bill,

I am interested in this issue and researching on it now. I will update you
as soon as possible.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #4
Hi Bill,

I am interested in this issue and researching on it now. I will update you
as soon as possible.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #5
Hi Bill,

Based on my research and experience, the following article is useful to
you. Please refer to it carefully.

HOWTO: Refresh a Specific Frame from Script
http://support.microsoft.com/default...b;en-us;194227

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #6

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

Similar topics

1
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like...
2
by: UJ | last post by:
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...
5
by: rodchar | last post by:
hey all, i have a web form with just a datagrid and on page load and not ispostback it fills the dataset and binds to the datagrid and that's it. i have a button that does nothing more than a...
2
by: Eric | last post by:
Hi, When my aspx (ASP2.0) page is being refreshed by the refreshbutton of the browser (ie) I get a message: "The page cannot be refreshed without resending the information....." How can I...
1
by: R.A.M. | last post by:
Hello, I have written an .aspx page which calls Calendar.aspx page to select birth date which should be assign to some text box control on first page. Here's the code of first page: Birthdate:...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
dmjpro
by: dmjpro | last post by:
hello guyes i faced a problem for a few months ... today i suppose to know the problem why it is .... when i trying to refresh a page by pressing F5 the sometimes i get a message like this .......
1
by: ABCL | last post by:
Hi I have aspx page that has a html link on it( <a href="javascript:window.open('xxx.aspx')";..) When I click this link If should open new window usng javascript, But it gives me a message...
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
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,...
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...
0
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...

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.