Hi friends,
I want to know that what's the application state? What's the difference between application state and caching? Why we used Application state and how?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 12, 2012, 8:21 PM EDT
Application state is server side state mechanism. It is used to store the data and it is like global variable. It can be used across the pages and across the users. This has to be used to initialize in the global.asax file.
Application["Key"] = value;
It has the two parts: key and value.
The key is used to access the value in the application state.
Difference:
MuthuMari MRank #5,738 · 288 reputationPosted Apr 12, 2012, 8:29 PM EDT
caching :
It is a way to store the frequently used data into the server memory which can be retrieved very quickly. And so provides both scalability and performance. For example if user is required to fetch the same data from database frequently then the resultant data can be stored into the server memory and later retrieved in very less time (better performance). And the same time the application can serve more page request in the same time (scalability).
for more info :
http://wiki.asp.net/page.aspx/655/caching-in-aspnet/
pls refer this url for application state:
http://www.c-sharpcorner.com/uploadfile/annathurai/application-state-in-Asp-Net/
thanks.
If this post is useful then mark it as "Accepted Answer"