How will u decide when to use caching and when to use
viewstate?
Answer Posted / 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 |
Post New Answer View All Answers
What is a web farm?
What is web configuration file and how to use in web application
Is asp.net different from asp? If yes, explain how?
How would you create a permanent cookie?
Tell me the code snippet to show how we can return 404 errors from HttpError?
Define a web service in .net?
What is ipostback?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
How can you access the properties and controls of master pages from content pages?
Is it possible to create web application with both webforms and mvc?
What is marshalling ? Is it a part of asp.net ?
How to add DateTime Control in normal DataGrid Server Control?
What is .net framework and what are the main components of it?
Do session use cookies in asp net?
What are the various session state management options provided by asp.net?