How to remove cached userCOntrol for OutputCache

Discussion in 'ASP .Net' started by ABCL, Mar 21, 2007.

  1. ABCL

    ABCL Guest

    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.RemoveOutputCacheItem(path);" b but it doesn't work

    Thanks
     
    ABCL, Mar 21, 2007
    #1
    1. Advertising

  2. ABCL

    Masudur Guest

    On Mar 21, 8:26 pm, "ABCL" <> wrote:
    > 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.RemoveOutputCacheItem(path);" b but it doesn't work
    >
    > Thanks


    How about this.

    HttpContext.Current.Cache.Remove("KeyName");
     
    Masudur, Mar 22, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stewart
    Replies:
    4
    Views:
    2,510
    Stewart
    Jun 26, 2003
  2. Natty Gur

    Re: Programatically remove @OutputCache

    Natty Gur, Jun 26, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    778
    Natty Gur
    Jun 26, 2003
  3. Teemu Keiski

    Re: Programatically remove @OutputCache

    Teemu Keiski, Jul 2, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    363
    Teemu Keiski
    Jul 2, 2003
  4. marshal

    @ OutputCache in usercontrol problem

    marshal, Aug 7, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    4,376
    Marshal
    Aug 7, 2003
  5. Craig G
    Replies:
    0
    Views:
    399
    Craig G
    Mar 7, 2005
Loading...

Share This Page