remove page cache

  • Thread starter Thread starter vikram
  • Start date Start date
V

vikram

How can I remove the cache of a page (cached with VaryByParam) for certain
request params in code? i.e I want to remove cached page for some id=344,
but want to keep page cached for some id = 1?

Thanks
 
yep ive done this here it is
put this in your aspx on button click or load

HttpResponse.RemoveOutputCacheItem("/virtdirname/folder/screen.aspx?id=number");
 
Back
Top