Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

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: -

Share this article   |    Print    |    Article read by 3142 times
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 for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Related Articles:
Related Interview Questions: