GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 116 of 165    Print  
What Is The Difference Between ViewState and SessionState

  
Total Answers and Comments: 4 Last Update: October 03, 2007     Asked by: sumalatha 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 03, 2006 09:03:17   #1  
krishna_v Member Since: January 2006   Contribution: 3    

RE: What Is The Difference Between ViewState and Sessi...

ViewState persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.

SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes.

Phani Krishna Reddy V


 
Is this answer useful? Yes | No
June 30, 2006 01:57:30   #2  
debiprosad        

RE: What Is The Difference Between ViewState and Sessi...
View State are valid mainly during postbacks and information is stored in client only. Viewstate are valid for serializable data only. Moreover Viewstate are not secured as data is exposed to client. although we can configure page directive and machine key to make view state encrypted. Where in case of session this is user specific data that is stored in server memory . Session state is valid for any type of objects. We can take help of session through different web pages also.
 
Is this answer useful? Yes | No
July 14, 2006 12:52:51   #3  
Raghu        

RE: What Is The Difference Between ViewState and Sessi...

Unlike Session state ViewState is a property of the web controls.

Both are used to persist certain data.

Values stored in the session are available across different pages in an application.

Where as the vdata contained in a control is persisted between page's post back by using that controls ViewState property.

View state cannot be used if the page donot post back to itself.


 
Is this answer useful? Yes | No
October 03, 2007 17:56:46   #4  
jawadtbz Member Since: October 2007   Contribution: 1    

RE: What Is The Difference Between ViewState and Sessi...
Viewstate is maintained at page level. view state of one page is not visible to another page.
session state on the other hand is maintained at the session level it accessible to all pages within a user session.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape