
Signature
venlig hilsen / with regards
anders borum
--
Thanks, but I need a little more help than this.
I am thinking that there are two steps I need to do.
1) Determine what subclasses of System.Web.UI.Page are in my project using reflection.
2) For each subclass refresh the output page cache.
I do not know how to do either of these steps.
If I have page in my project called Login how do I refresh the output page cache? The only think I know how to do is something like Page.cache.remove("foo"), which is an instance method that only removes the cached item "foo". I want to programatically refresh the page output cache for page Login.
How do I determine what subclasses of System.Web.UI.Page are in my project.
Hope this is clear.
Thanks. Jay
Victor _ - 28 May 2004 15:46 GMT
Not sure if this will still help you or not but I was looking to do
something similar. I have a page with 3 user controls on it. Each of
the user controls are cached but I wanted to force a refresh on each
user control independently. Here is what I did:
1) Added varybyparam="rptRefresh" to <%@ OutputCache duration="100"
varybyparam="rptRefresh" %>
2) Added a button to the page where the user control is included. When
this button is clicked I redirect to the same page but set a parameter
on the query string called rptRefresh equal to anything. This forces
the user control to refresh. Any time rptRefresh changes values on the
query string the user control will refresh.
Hope this helps.
By the way, I noticed varybycontrol is similar (but references a
control), however, I read this requires overriding before it will work.
--Victor