Difference between viewstate, cache, session

Answer Posted / govindarao konduri

view state:- This is common way to store the data in view state.View state is using 'hidden files' to store data.Advantage is performance.Disadvantage is if any cross post back occurs the view state will expires.

Caching:- The caching always store the resulted data.First time user send a request to server, the user required data will be stored in caching from the server.Next time onwards no need to go for server,we can get the information from the caching..

Session:- Session is very secure because it was located at server.Sessions are (2) types.
1.inproc
2.Out-process(its preferred)
*State server
*Sql server

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Types of session management in ASP.NET

555


Explain the asp.net mvc folder conventions? : asp.net mvc

502


Explain Session state management options in ASP.NET.

583


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

614


How is mvc different from asp.net? : Asp.Net MVC

538






What is request and response in asp.net?

500


What are different types of api?

524


Where do we store our connection string in asp.net application?

518


What is server side routing?

493


What are the different types of proxy patterns?

586


Which class is used to send an email message from an ASP.NET Web page?

534


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1498


How to find out what version of asp.net I am using on my machine?

573


What is server infrastructure?

606


What is cas?

589