Wednesday, April 13, 2011

.NET/ASP.NET Interview Question -What is Viewstate?

Answer:

ViewState is a state management technique build in ASP.NET.

ViewState basically maintains the state of the pages between postbacks.

ViewState maintain the session within the same page.

ViewState allows the state of objects to be stored in a hidden field on the page.

Regards,
Please click here to see more .NET/ASP.NET interview questions

2 comments:

Muhammad Azeem said...

This is a nice article..
Its easy to understand ..
And this article is using to learn something about it..

c#, dot.net, php tutorial, Ms sql server

Thanks a lot..!
ri70

Andy Davies said...

I'd expect a candidate to tell me the drawbacks of viewstate not just what it is.

From a web performance point is view, viewstate sucks, as does the outback model it relies on.

Viewstate is 'not of the web'

Andy