GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 53 of 164    Print  
What is a view state?Can Dataset be stored in view state?Does datagrid has a view state?

  
Total Answers and Comments: 5 Last Update: July 09, 2008     Asked by: Deepu94 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: pankaj.gupta79
 

ViewState is a mechanism to maintain state in ASP.net pages. HTTP is a stateless protocol. So we can maintain state either on server or client using sessions, cookies, hidden variables, URL, etc.

ViewState is a hidden field maintained by ASP.Net to contain page data.

Yes, Dataset can also be stored in ViewState but this is not recommended due to overhead of managing a bulk data in ViewState.



Above answer was rated as good by the following members:
abhishek_goyl, shounakbasak, sachin3378
May 25, 2006 05:17:49   #1  
pankaj.gupta79 Member Since: May 2006   Contribution: 1    

RE: What is a view state?Can Dataset be stored in view...

ViewState is a mechanism to maintain state in ASP.net pages. HTTP is a stateless protocol. So we can maintain state either on server or client using sessions cookies hidden variables URL etc.

ViewState is a hidden field maintained by ASP.Net to contain page data.

Yes Dataset can also be stored in ViewState but this is not recommended due to overhead of managing a bulk data in ViewState.


 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
May 26, 2006 00:49:15   #2  
foram        

RE: What is a view state?Can Dataset be stored in view...
viewstate is mechanism to maintain state at client side. and its information is stored in html 's hidden field.its adv. is that its very easy to implement and maintain at client side and its information are in encripted form and its disadvantages are that if u stored any value in view state then u can't maintain it in other page
 
Is this answer useful? Yes | No
June 02, 2006 02:25:39   #3  
Manish Pathak        

RE: What is a view state?Can Dataset be stored in view...

ViewState is a process which allow the state of the object to be stored in the hidden field viewstate is stored at client side i.e.viewstate is used to preserv the value of the object between postback.

This is part of the State Management.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
February 16, 2007 06:12:29   #4  
Nishanth Nair        

RE: What is a view state?Can Dataset be stored in view...
Yes. Because Dataset is Serializable. Any object that is serializable can be stored in a ViewState.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 09, 2008 14:24:57   #5  
ynvpavan Member Since: September 2007   Contribution: 16    

RE: What is a view state?Can Dataset be stored in view state?Does datagrid has a view state?
View state is of maintaining the state of the object until the page is destroyed. In the sense viewstate maintains the state of the object in all the postbacks. Dataset can be stored in viewstate.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
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