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

When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.

5 Answers   Netsweeper,


What is state management in asp.net with example?

0 Answers  


Hi, We have a user control that have button Now we use this user control on different aspx pages. We want when we click on the user control button then button behave differently on different page (Dynamacilly).

2 Answers   HCL,


List down the sequence of methods called during the page load.

0 Answers  


What are the new features added from ASP to ASP.NET?

0 Answers   Amdocs,






What is the question mark in a url?

0 Answers  


Define repository pattern in asp.net mvc? : asp.net mvc

0 Answers  


How do you define authentication in Web.Config?

2 Answers   Accenture, BirlaSoft, IBM,


What is different between webconfig.xml & Machineconfig.xml ?

1 Answers  


Explain About duration in caching technique

0 Answers   BirlaSoft,


About the Usage of htmlencode and urlencode ?

2 Answers   Cognizant,


how can u create the blog in asp.net with C#?what is the data type u will use to store in sql server?

0 Answers   IBM,


Categories