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
Explain what is viewstate?
How we can force all the validation controls to run?
Can we set master page as a start page?
What are the Types of object in asp
What is validation in asp.net?
What is http only cookie?
How many types of state management are there in asp net?
What is the difference between viewstate and hidden field in asp.net?
Explain the difference between asp and asp.net?
What is Pre-Render event in ASP.NET?
What are the types of validation in asp net?
Define static constructor?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
What is the default Orientation property in a Menu control?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?