Properly using cache, session, and viewstate objects in your asp.net application
Understanding the differences between Cache, Session and ViewState
This article is originally from http://www.progtalk.com/ViewArticle.aspx?ArticleID=62.
This article will discuss the different types of storage methods, and which may be best for your site. As the number of web applications and developers are growing, there seems to be misunderstandings regarding what method storage method should be used, and when. There are heavy consequences which can result in loss of customers, and viewers based on incorrect strategies being used for development. Let us start, by first examining the different methods.
Understanding Cache
The Cache can be thought of as the memory. It is simply, the memory of the machine/server from which the source code is running from. This is an extremely important feature which can allow you to store difficult and complex constructed data which can be reused.
Imaging you had to query a large set of different databases, which may consist records from databases ranging from MySQL, MSSQL, to ORACLE which were joined using some VB.NET or C# code. Now if the records where changing insignificantly every couple of hours, why would we need to do a live fetch/lookup every time the user wanted to get some information? It would first be slow, and resource intensive a
Go to the complete details ...