Click here to Skip to main content
13,357,363 members (69,383 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am familiar with the advantages and disadvantages of storing data in Viewstate, session, application and Caching. I would like to know which is the optimal approach in disconnected architecture from the security - performance point of view.
Posted 13-Dec-12 23:43pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Viewstate is used to save the current state of the controls in the aspx page. Session is used to save data you want to be available across multiple pages for a single user. You use cache when working with data/information that should be able to be applied to all users.

Of course this is a very over-simplified explanation, but if you want more specific information then you can find all sorts of information on these using google.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

its depend on your demand. the viewState, Session, Caching has different use for different purpose. When you need to work ViewState, you cant cover this with Session/Caching and same for others. So, First feel your demand that what is your problem then you got understand that which one you need to use.


Rashed:: Bangladesh.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 15 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100