473,545 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to remove cached userCOntrol for OutputCache

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 event
I have tried to remove it using
"HttpResponse.R emoveOutputCach eItem(path);" b but it doesn't work

Thanks

Mar 21 '07 #1
1 1956
On Mar 21, 8:26 pm, "ABCL" <ohm...@hotmail .comwrote:
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 event
I have tried to remove it using
"HttpResponse.R emoveOutputCach eItem(path);" b but it doesn't work

Thanks
How about this.

HttpContext.Cur rent.Cache.Remo ve("KeyName");

Mar 22 '07 #2

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

Similar topics

0
1196
by: Pete | last post by:
I am building an ASP.NET application and have just encountered something very strange which I would like explained if possible. In BaseForm.ascx I have the following <form> element: <form ID="formBaseForm" method="post" runat="server"> <!-- Banner UserControl --> <PW:Banner runat="server" ID="Banner1" /> <!-- Initial UserControl -->
3
3260
by: feng | last post by:
In my ASP.Net app I have a aspx page that's called by an other page's client side JavaScript code. The problem is that the first time this page get loaded, it will be cached in the user's local cache and will not be refreshed in the following calls. I checked the following calls and I see that even the page's Page_Load method of the...
1
1278
by: Hazz | last post by:
<%@ Page language="c#" Codebehind="cachecontrol.aspx.cs" AutoEventWireup="false" Inherits="blah" %> <%@ OutputCache duration="20" VaryByParam="ddlCountries"%> is at the top of my .aspx page. the dropdownlist ddlCountries is used to select a country after which a submit button posts the form to launch a query to populate a grid. By...
2
4793
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 "Account/Logon" or "Account/Logout" depending on whether the user is logged on. I want to cache this user control for 1 hour but have it automatically reloaded if...
3
3795
by: Don | last post by:
My user control has a combobox with an arraylist attached to it along with custom add and remove methods. The "Add" method is working great. However I don't understand why the "Remove" method isn't working. It neither removes the item from the arraylist nor from the combobox like it's supposed to do. A couple of notes: cbx is the name of...
0
848
by: Frank Rizzo | last post by:
Hello, I have <%@ OutputCache Duration="100000" VaryByParam="id" %> at the top of my .ASPX page. However, depending on what the user does, I would like to remove the page from Output cache. How can I accomplish this from the code behind page? Thanks.
6
2749
by: Rolf Welskes | last post by:
Hello, I want to partial cache by using a UserControl. Now I have a file dependency. In msdn I see it is not possible to do it the same way as in a page. The only information is to create a file dependency and assign it to Dependency property.
1
1044
by: ABCL | last post by:
Hi all Can any one tell me if I want to cache the User control, Where does it cached? I am not able to it in "Cache" object Thanks
0
847
by: Jens | last post by:
Hello, I've created a usercontrol that's cached: <%@ OutputCache Duration="43200" VaryByParam="none" %> UserControl.SubID = 2 UserControl.Subrubriek = "Test" When I load the page for the first time everything is okay, but when I reload the page I get an error "Object reference not set to an
0
7490
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...
0
7682
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. ...
0
7935
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...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5069
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...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.