473,395 Members | 1,595 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,395 software developers and data experts.

Filtered output disappears after browser back/forward

I created a base page class which sets a response filter and the filter
injects additional html into the response output stream. The filter works
fine and everything works as expected except for the following quirk:

When I navigate my browser to another url (a link in the page, a browser
favorite...it doesn't mater) and then use the browsers (IE 6) Back or
Forward buttons to go back to my filtered page the additional html I had
added using the filter is gone. I have to refresh the page from the server
to get back the additional filtered content.

Why would the filtered content "disappear"? It's in the page source that
was returned to the client so it shouldn't be any different than the reset
of the page the browser cached...should it?
Brad
Nov 18 '05 #1
5 1718
Hi Brad,
Thank you for using Microsoft Newsgroup Sevice. Based on your description,
you have a custom page class that will output some filtering html to the
response stream. The page which inherits from the class runs well, the
filtering output can display. However, you found that if you navigator from
the page to other url and push the IE's "back" button to go back to the
former page, those filtering output disappear(also occurs when pushing the
"forward" button). Is my understanding of your problem correct?

If so, I'd like to know some more infos on your situation:
1. Does this problem occurs everytime or just sometimes?

2. Have you tried output some simple html code to the reponse stream and
see whether this problem occur?

3. Would you please show me some code about the output filtering html (just
simple enougth to reproduce the problem) if you
feel it convenient or possbile.

Please try out the above suggestion. If you have any questions or new
findings, please also let me know.
Merry Christmas!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Thanks for your response, Steven.

(1) Yes - this happens every time. I've view the source (Browser - view
source) when the page is initially rendered and it includes my added html.
After I go to another page then back/forward to that page and view the
source it is missing my additional content. Note: the page did not post
back to the server to refresh as a result of the forward/back, which I
double checked with debugging

(2) I was just adding simple html to the response stream....an html table
that makes up page header and some "menu" hyper links, which again all
displayed fine. So what would you want me to try instead of that?

(3) Writing from home as I prepare for a few days of vacation so I'll post
code mid-next week. Overall I'm setting a new response.filter in the base
page classes OnInit. In the overloaded filter stream's write method I
search for the <body> tag and add some html right after the <body> tag
i.e. responsestream = responsestream.replace(myBodyTag , myBodyTag &
extraHtml)

I'll check back and also send the exact code next week.

Thanks

Brad
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:dB**************@cpmsftngxa07.phx.gbl...
Hi Brad,
Thank you for using Microsoft Newsgroup Sevice. Based on your description,
you have a custom page class that will output some filtering html to the
response stream. The page which inherits from the class runs well, the
filtering output can display. However, you found that if you navigator from the page to other url and push the IE's "back" button to go back to the
former page, those filtering output disappear(also occurs when pushing the
"forward" button). Is my understanding of your problem correct?

If so, I'd like to know some more infos on your situation:
1. Does this problem occurs everytime or just sometimes?

2. Have you tried output some simple html code to the reponse stream and
see whether this problem occur?

3. Would you please show me some code about the output filtering html (just simple enougth to reproduce the problem) if you
feel it convenient or possbile.

Please try out the above suggestion. If you have any questions or new
findings, please also let me know.
Merry Christmas!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi Brad,
Thanks for your response. I've got your situation and will keep waiting for
your update. In the meantime I'll do some further research on this issue.

Have a good vacation!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #4
Steven,
Never mind. It seems to have been an issue with my browser caching a copy
of the page in IE's Offline Content. I'm not sure why this was so but once
I cleared the Offline Content the filter's inserted content always shows.

Thanks for your time.

Brad
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:H5**************@cpmsftngxa07.phx.gbl...
Hi Brad,
Thanks for your response. I've got your situation and will keep waiting for your update. In the meantime I'll do some further research on this issue.

Have a good vacation!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Hi Brad,

Thanks for your response. I'm glad that the problem has been resolved. Have
a good day!
Steven Cheng
Microsoft Online Support

Get Secure! 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

8
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
3
by: Phil Powell | last post by:
Go to http://www3.brinkster.com/soa/js/val_header.js And it will appear And refresh your browser And then you get a 404 File not Found hit your back browser button and go forward and it...
1
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
1
by: Jimmy | last post by:
I want to hook the "back" event or "forward" event from a browser page. How can I trigger these events to my asp.net page? ch Jimmy
10
by: Wildemar Wildenburger | last post by:
Hi there :) I don't know how else to call what I'm currently implementing: An object that behaves like a list but doesn't store it's own items but rather pulls them from a larger list (if they...
0
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser...
4
by: John | last post by:
Hi everybody, for my web-application (it must currently work only under IE6) I have a servlet that intercepts user's HTTP GET requests for a typical search result page, which contains a paging...
0
Unicron
by: Unicron | last post by:
Hi everyone. I have a group of developers here and none of us can explain this problem. It seems a theoretical impossibility, but it's happening anyway. I have a flash presentation im working on...
3
oranoos3000
by: oranoos3000 | last post by:
hi i'm a beginer javascript would you please help me i d like to findout this page has next page or previous page in history object i use this line of code if(window.history.length>0) and with...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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...
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,...

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.