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

1 comment:

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