Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / June 2006

Tip: Looking for answers? Try searching our database.

Remove all Cache Items from Site

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kamal Ahmed - 05 May 2006 08:10 GMT
Hi all,

I have a DB driven Web App with Cached Data Grids. I use Cached dataviews
for data grids. Upon closing Site or logging out, I want to clear all the
Caches in my site.

How it could be done... ??

TIA

Muhammad Saleem
CSi
Benjamin Strackany - 06 Jun 2006 19:19 GMT
If you want to clear items from a cache when a user logs out, then you may
want to use Sessions instead of the Cache object.

Regardless, if you want something to happen when a user leaves a site, you
can stick code in the session OnEnd event. It's harder to make something
happen when they close their browser, though -- you'd have to trap the
page's onunload event using javascript, which is a pita.

Ben Strackany
www.developmentnow.com

> Hi all,
>
[quoted text clipped - 8 lines]
> Muhammad Saleem
> CSi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.