Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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.
 
Share this answer
 
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.

Thanks

Rashed:: Bangladesh.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900