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. Advertisements

  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. Advertisements

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,613
    Stewart
    Jun 26, 2003
  2. marshal

    @ OutputCache in usercontrol problem

    marshal, Aug 7, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    4,595
    Marshal
    Aug 7, 2003
  3. Craig G
    Replies:
    0
    Views:
    541
    Craig G
    Mar 7, 2005
  4. =?Utf-8?B?bG9uZG9uIGNhbGxpbmc=?=

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

    =?Utf-8?B?bG9uZG9uIGNhbGxpbmc=?=, Jul 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    692
    =?Utf-8?B?bG9uZG9uIGNhbGxpbmc=?=
    Jul 5, 2005
  5. Rick
    Replies:
    0
    Views:
    431
  6. Frank Rizzo

    How to remove page from OutputCache

    Frank Rizzo, Feb 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    451
    Frank Rizzo
    Feb 20, 2006
  7. ABCL
    Replies:
    1
    Views:
    327
    GroupReader
    Mar 22, 2007
  8. Jens
    Replies:
    0
    Views:
    330
Loading...