Notice

YouTube.com/BESTTravelers - Visit and SUBSCRIBE to our travel related YouTube Channel named "BEST Travelers"

Friday, June 3, 2011

Clear cache of your PC using ASP.NET(C#)

You can use following function to clear cache of your PC using ASP.NET(C#).

public static void CacheClear()
{
    foreach (System.Collections.DictionaryEntry DE in HttpContext.Current.Cache)
    {
        string Key = DE.Key.ToString();
        HttpContext.Current.Cache.Remove(Key);
    }
}

1 comment:

  1. very nice post, i like it someone can learn about C language. you can visit my site
    http://best-foodnetwork.blogspot.com/

    ReplyDelete