473,480 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

force asp.net to remove cached page literals asp.net 1.1

Hi everyone, I am developing an application which uses custom httpmodules and
httphandlers to display 'portaled' content. (asp.net 1.1)

The front end consists of aspx templates which contain masterzones which in
turn have subzones which in turn have modules. (sound familiar!!)

when a request is received an httpmodule looks at the hostname to determine
which portal the request is for before working out which page is being
requested and retreiving the PageInfo object (which is an object describing
ACL, template etc), SubZoneInfo (s) and ModuleInfo (s) (more objects
describing their relative functions ACLs etc) and passing this to a
httphandlerfactory.

The handlerfactory looks at the PageInfo object to determine which aspx
template to load for the page before calling
PageParser.GetCompiledPageInstance and building the page... so far so good
and all works well.

The problem is if you change the template in the PageInfo object to try and
load the same zones and modules into a different aspx template it displays
the old template (until iis is recycled). I think this is because asp.net has
cached all the literals for the old aspx template (i.e content it doesn't
expect to change), against the url.

If you then touch the aspx template file it loads correctly with the new
template

The questions are:
Am I right about what asp.net is doing with the 'non changing' literal
content.
If I am correct where is this cached (what is the cache key etc)
If I am incorrect where is it reading the old template from and how can I
force it to refresh.

Any ideas would be very welcome

thanks jd
Nov 19 '05 #1
1 1915
anyone?? TIA jd

"london calling" wrote:
Hi everyone, I am developing an application which uses custom httpmodules and
httphandlers to display 'portaled' content. (asp.net 1.1)

The front end consists of aspx templates which contain masterzones which in
turn have subzones which in turn have modules. (sound familiar!!)

when a request is received an httpmodule looks at the hostname to determine
which portal the request is for before working out which page is being
requested and retreiving the PageInfo object (which is an object describing
ACL, template etc), SubZoneInfo (s) and ModuleInfo (s) (more objects
describing their relative functions ACLs etc) and passing this to a
httphandlerfactory.

The handlerfactory looks at the PageInfo object to determine which aspx
template to load for the page before calling
PageParser.GetCompiledPageInstance and building the page... so far so good
and all works well.

The problem is if you change the template in the PageInfo object to try and
load the same zones and modules into a different aspx template it displays
the old template (until iis is recycled). I think this is because asp.net has
cached all the literals for the old aspx template (i.e content it doesn't
expect to change), against the url.

If you then touch the aspx template file it loads correctly with the new
template

The questions are:
Am I right about what asp.net is doing with the 'non changing' literal
content.
If I am correct where is this cached (what is the cache key etc)
If I am incorrect where is it reading the old template from and how can I
force it to refresh.

Any ideas would be very welcome

thanks jd

Nov 19 '05 #2

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

Similar topics

4
42734
by: Martin | last post by:
This is probably more of an HTML question than PHP. Perhaps someone here can answer or point me to a proper newsgroup. How can I force the browser to reload an image from the server? I have a...
2
10942
by: qqq | last post by:
I need a page to be refreshed, even if the user navigates back to it with the 'Back' button in the browser. I've put "Reponse.expires=0" in the Page_load event, but the desired refresh isn't...
2
4784
by: Edward Chung | last post by:
I create a user control that is used as a page header for all application's pages. The user control contains a HyperLink control named accountHyperlink whose text can either set to...
4
2524
by: Paul Drummond | last post by:
Is there a way to force a page refresh, so users will not receive a cached version of a page, even if they have their browser set to never check for a newer version of page? Thank you!
3
1821
by: Emily | last post by:
I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp. If it goes back from hello.asp to login.asp, then in Internet Explorer,...
5
5434
by: kplkumar | last post by:
Hi I am doing a manual timeout, irrespective of whether the user is active or not I will time them out after 3 hours. I also make sure the page is not cached so that they can't go back to the...
1
1924
by: vikram | last post by:
How can I remove the cache of a page (cached with VaryByParam) for certain request params in code? i.e I want to remove cached page for some id=344, but want to keep page cached for some id = 1? ...
1
1952
by: ABCL | last post by:
Hi All I have usercontrol on the page that I have added at design Time and cached it How can I remove the cached Usercontrol from outputcache. I want to remove cached version in session start...
3
2100
by: COHENMARVIN | last post by:
I have a button in my asp.net page (actually its in a user control with a .ASCX suffix) called btnGetData. I'm trying to make it force a refresh of my page. So what I did was make it call...
0
7044
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
6908
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
7045
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,...
0
7087
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...
0
6944
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...
0
5341
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,...
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
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...

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.