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

Answers were Sorted based on User's Feedback



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

Answer / richa

When it comes to choosing between ViewState and Caching it
all comes down to what you are doing. ViewState is an ideal
candidate if you are planning to save small values. Mostly
values of server controls are saved in ViewState. If you
plan to store large datasets, datatables or collections than
data caching is an excellent candidate.

Is This Answer Correct ?    19 Yes 0 No

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

Answer / ajai

If you want to store large datasets and datatables than
data caching is an good option and for small values you
should use viewstate.

Is This Answer Correct ?    12 Yes 1 No

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

Answer / 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

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

Answer / anurag vatsa

storge of large dataset & data tables should be done using
data caching while for small data values we can use view
state.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / ajay

when u want to store large data like(dataset & data tables) then u can use caching and if u want to use small data then u can choose viewstate....

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Give 2 examples for scenarios when routing is not applied?

0 Answers   NA,


What does the hotspot class in .net do?

0 Answers  


What are the security types in ASP/ASP.NET? Different Authentication modes?

0 Answers  


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


What is Boxing and Unboxing?

7 Answers   Accenture, IBM, Tech Mahindra,






version information of assembly consist of _________ values.

3 Answers   AG Technologies,


How to deploy the Asp.Net Project ?

3 Answers  


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


What is bound controls

0 Answers   MCN Solutions,


What are validators and list some validators of asp.net?

0 Answers  


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

0 Answers  


What is reflection and disadvantages of reflection ?

2 Answers   CTC, Microsoft,


Categories