Author: mikehac | Posted on: 4/26/2010 10:26:53 AM | Views : 1596

Hello everybody.
I am building web application(ASP.NET) and I have  to make dessision how to implement some issue:
Every page in my application has 4 banners(4 images with advertising content) on master page,that are stored in db. The administrator can change those images in back office. The problem is that when user surf from one page to another,every time when master page loads,it should go to the database and take this picture(I save only picture's file name,not all picture).
I don't want to access to db every time I go to another page, so I wanted to use Application,when the admin change the banner's images,I've been thinking to save it in Application state and on Master page page_load event load this images from it.
But suddenly I've found HttpContext.Cache and HttpRuntime.Cache. I can not understand the diffrence between those three thing.
What is the best way to use in my case?
Regard ...

Go to the complete details ...