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 the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What methods are fired during the page load? Init()
What is x xss protection?
how can create login from create and written conde in asp.net
When we use cookie less session? Explain its working?
What is the difference between table and query?
How can you display all validation messages in one control?
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
Explain the flow of processing of the request? : asp.net mvc
How to Insert/Add in ASPXgridview
Which authentication uses a combination of windows and iis authentication?
What are the differences between the response.write() and response.output.write()?
Explain the difference between server control and html control.
What is asp.net? How is it different from asp?