How will u decide when to use caching and when to use
viewstate?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
How many classes can a single .NET DLL contain?
is it possible to persiste customize object in view state? how it is?
what are partial classes and their use?
Explain how viewstate is being formed?
How we handle the runtime database schema change issue in asp.net application?
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).
What is MVVM in dot net?
Describe a diffgram ? Write any one use of that?
What is the difference between the get method () and post method ()?
How many column in table of sql server?
What is state management in .net?
How do you deploy your asp.net application?