How to destroy the Web server Cache dynamically.

Posted by Guna27 under ASP.NET on 12/28/2012 | Points: 10 | Views : 1115 | Status : [Member] | Replies : 1
Hi,

I have a web application and web service. I want to remove the web service cache by the C# code how it is possible.

Guna..............


Responses

Posted by: Sinisreedhar on: 12/29/2012 [Member] Starter | Points: 25

Up
0
Down
IDictionaryEnumerator enumerator = HttpContext.Current.Cache.GetEnumerator();

while (enumerator.MoveNext())
{

HttpContext.Current.Cache.Remove(enumerator.Key);

}

Ready to accept challenges at any time.....

Guna27, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response