Last post Feb 29, 2012 07:25 AM by venkatmca008
Apr 04, 2007 06:34 AM|alekhine_x9|LINK
I have a CachedControl.ascx user control which uses output cache. Let this user control reside in a ASP.NET page called Container.aspx.
I want to be able to clear the user control's output cache programmatically from another page called ClearCache.aspx.
(for example when doing a data change in an administration page, the user control output cache in the store side should be cleared to reflect the newest data, before waiting the cache to expire)
I found that HttpResponse.RemoveOutputCacheItem("absolute virtual path") method is supposed to do this work, but it did not work for my situation.
It seems it is working to clear a full aspx output cache from another page.
The cache clearing code in the ClearCache.aspx is:
I also tried
Is there a solution to my problem?
Apr 13, 2007 01:23 PM|alekhine_x9|LINK
Suprised that not a single answer posted to my question.
I just wonder whether it is possible or not to clear a user control output cache from another page.
Where are those MVP's? This is a very common scenario in a web app.
Jan 18, 2008 10:07 AM|YPhyu|LINK
I am facing the same problem. Have you find any solution yet?
Jan 18, 2008 12:29 PM|YPhyu|LINK
I have had a solution from this url:
Feb 29, 2012 04:26 AM|naan cloud|LINK
I am also need a solution for this. Does any one found a solution for this?
Feb 29, 2012 04:59 AM|venkatmca008|LINK
hi..please refer this..and let me know..
response.expires = 0
or please try this
Feb 29, 2012 07:21 AM|naan cloud|LINK
Already i saw those websites. The problem is i must be able to remove a user control from the cache. The one you are referring will remove the pages from the cache.
Feb 29, 2012 07:25 AM|venkatmca008|LINK
hi...refer this to clear user control from cache