Xpode.com        Click here to Print this article.

ASP.NET Interview questions: - Distinguish between session and view state?

Below are three important differences between session and viewstate.

Session ViewState
Data storage location Browser Hidden fields On Server
Accessible In the same page. Across pages.
Uses cookies No(NA) Yes. If cookies disabled will use URL Query String.

In case you are new to session and view state please see the following ASP.NET training video on importance of Session and viewstate in ASP.NET: -

You can also Buy our .NET interview question book or you can also see more .NET interview question videos

You can also see the following video on IEnumerator VS IEnumerable: -



http://
http://

Contributed by:
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site http://www.questpond.com for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=617

Click here to go on website