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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 13, 2012, 12:29 AM
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"
SenthilkumarPosted Apr 13, 2012, 12:21 AM
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: