473,692 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1734
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(myBodyT ag , myBodyTag &
extraHtml)

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

Thanks

Brad
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:dB******** ******@cpmsftng xa07.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.m icrosoft.com> wrote in message
news:H5******** ******@cpmsftng xa07.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
6625
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
3
1261
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 reappears!
1
6010
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 discovered that my web app is definately NOT Back/Forward safe. It's really messing with my SQL data bigtime. Thanks.
1
1797
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
1751
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 match a certain criterion). Changes to the filter are instantly reflected in the underlying list. Clear enough? Ok, so I figured that this is generic enough to be found in some standard module already (I've had this often enough: Painfully
0
2513
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 functionality where the ‘mini-browser’ has similar functionality to a normal browser. Let me explain: Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
4
6276
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 mechanismus for navigating between the result pages (e.g. << 1 2 3 4 5 ... >). When the user clicks on this navigation, the JSP send a GET request to a servlet wich does some buisiness logic - in particular it logs (with log4j) how many times an...
0
2567
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 for my company. You can see it and its problem here- http://portfolio.yourcareerinfo.com/importfolio.php The back button clip in the corner goes back to the site that brought them here. It always works for my at my desk, in every browser. ...
3
3551
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 this line code indentify that exist else page that visited via this page but i want to findout this pages is previous page or nextpage? thanks very much for your help
0
8604
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
8538
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
9083
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
8961
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...
0
5819
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
4557
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2974
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
2
2238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1957
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.