remove page cache

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
 
G

Guest

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");
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top