How to remove cache object in asp.net?

Answer Posted / amey

For Each de As DictionaryEntry In HttpContext.Current.Cache

HttpContext.Current.Cache.Remove(DirectCast(de.Key, String))

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you support digital rights management to protect my videos?

637


Tell me the code snippet to show how we can return 404 errors from HttpError?

1032


Is oauth for authentication or authorization?

781


List all templates of the repeater control.

759


What are Master Pages in ASP.NET? or What is a Master Page?

830


What is the purpose of asp.net?

729


What is smpte vc-1?

771


How can you apply a theme to your asp.net application?

732


How many types of file extensions for razor views in ASP.Net MVC?

791


Differentiate between structure and class.

758


How to manage different kinds of sessions in ASP.NET?

775


What are the two Layouts supported by a Web form in ASP.NET?

784


Where web.config file is used?

766


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1605


What is the difference between mechine.config and web.config?

985