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 |
suppose i am Admin in my application and i have to terminate the session of the particular user in my application.........how can i do it....?????
what are the attributes of sitemapnode?
List the major built-in objects in asp.net?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
can we call webservice in Html form?
1 Answers Bank Of America, BirlaSoft, Microsoft,
What is custom control. What is the difference between custom control and user control?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
How do you identify that the page is postback?
Differentiate between file-based dependency and key-based dependency.
What is viewstate information stored?
what is the jit? what is the type of jit and purpose of it>
How about the security in Activex DLL and Activex EXE ?
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)