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 |
What are the steps involved to fill a dataset?
Explain the difference between asp.net mvc and asp.net webforms
What is the default authentication mode for asp.net?
What is sta?
List down the sequence of methods called during the page load.
What are Authentication mechanisms in .Net?
When is validation done on the client? How does client-side validation improve the efficiency of an application?
What is the Custom Error in ASP.NET?
2 Answers ABB, IBM, Infosys, Tech Mahindra,
All kind of access specifiers for a class and for methods ?
What are the security types in ASP/ASP.NET? Different Authentication modes?
What is IPostBack? How to use it?
What are the asp.net security controls?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)