What is difference between session and viewstate?



What is difference between session and viewstate?..

Answer / Rohit Kumar Maddeshiya

Session is a server-side mechanism used to store user-specific data across multiple requests. ViewState, on the other hand, is a hidden field that stores the state of an ASP.NET web form control in the page, allowing controls to retain their values between postbacks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Which two new properties are added in asp.net 4.0 page class?

1 Answers  


Where code pages are used?

1 Answers   Blue Star,


How we handle the runtime database schema change issue in asp.net application?

2 Answers   IBM, Tech Mahindra,


Define reflection in .net?

1 Answers  


What is a page life cycle? What are the events in a page life cycle?

1 Answers  


What are main return types supported in Web API?

1 Answers  


What's a bubbled event?

3 Answers   Siebel,


Describe the difference between inline and code behind - which is best in?

1 Answers  


Difference between Htttppost and Httpget Methods?

3 Answers   Infosys, Microsoft,


What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0

11 Answers   Bosch, IntraLogic,


Explain one critical mapping?

1 Answers  


What is anonymous authentication?

1 Answers  


Categories