What is a view state?Can Dataset be stored in view state?Does datagrid has a view state?

Questions by Deepu94

Showing Answers 1 - 5 of 5 Answers

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.

foram

  • May 26th, 2006
 

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

  Was this answer useful?  Yes

Manish Pathak

  • Jun 2nd, 2006
 

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.

 

 

  Was this answer useful?  Yes

Nishanth Nair

  • Feb 16th, 2007
 

Yes. Because Dataset is Serializable. Any object that is serializable can be stored in a ViewState.

ynvpavan

  • Jul 9th, 2008
 

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.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions