How will u decide when to use caching and when to use
viewstate?

Answer Posted / satish v itagi

ViewState has no automatic expiration, it is reloaded with
every page created and served by server. Caching leaves
data away from page life, its scope can be page, session or
application. Caching can have its own custom life span
defined. Conventionally, caching is used for large data.
Bigger viewstate data, slower will be page loading. Bigger
caching, faster will be page loading!

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session handling in a webfarm, how it can work with its limits?

833


What is the difference between page-level caching and fragment caching?

715


What is the difference between equals() and == in c#?

736


Difference between response.redirect and server.transfer?

748


What symbol would you use to denote, the start of a code block in aspx views?

737


What is asp.net mvc5? : Asp.Net MVC

748


Explain the differences between managed and unmanaged code?

680


Where the viewstate is stored after the page postback?

847


What is meant by server side scripting?

693


What is a page life cycle?

775


What is the difference between viewstate and hidden field in asp.net?

707


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

793


What is the use of ASP.NET routing?

738


What are strong names?

768


What is enableviewstate in asp net?

701