Difference between viewstate, cache, session
Answer Posted / chinmayee mishra
SESSION: Variables are stored on the server, can hold any
type of data including references, they are similar to
global variables in a windows application and use HTTP
cookies to store a key with which to locate user's session
variables.
VIEWSTATE: Variables are stored in the browser (not as
cookies) but in a hidden field in the browser. Also
Viewstate can hold only string data or serializable objects.
CACHE: It refers to information that is reused in your
application, or information that is stored on your computer
so it can be reused. For example, if you download an image
from the internet, it's often cached so you can view it
again without downloading the image data. Caching is a form
of replication in which information learned during a
previous transaction is used to process later transactions.
To make web surfing faster, web browsers store recently
visited pages on the user’s disk. When the site is
revisited, the browser displays pages from the cache
instead of requesting them from the server. Reloading
brings up the current page from the server.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is an asp.net web form?
What are the types of authentication in asp.net?
Describe how passport authentication works.
How to Insert/Add in ASPXgridview
If you want to write your own dot net language, what steps you will you take care?
Explain the difference between asp and asp.net?
What is the difference between ASP Session State and ASP.Net Session State?
Why mvc is better than asp.net? : Asp.Net MVC
Define the term Scavenging in Caching?
What is the purpose of asp.net?
How do you implement postback with a text box?
Explain the difference between singleton and single call?
What do you mean by marshalbyref?
What is caching in asp.net?
Elaborate differentiation between ViewState and SessionState?