What is viewstate?

Answer Posted / ganesh

ViewStates are nothing but hidden fields genereted by
asp.net at runtime to maintain the state of the (Controls)
object. We can maintain viewstate in three levels.
Application level,Page Level,Control level. For this
EnableViewState property should be true.

These viewstates will be availble only in the page.If the
page will get expire this also will be expire in runtime.
We can maintain viewstate with in the page only.

-------------------------

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you want to write your own dot net language, what steps you will you take care?

527


What is the difference between stored procedure vs function?

581


Differentiate between early binding and late binding.

580


Why do we use asp.net?

590


What is asp.net response object?

564






Explain the purpose of storyboard.targetproperty.

525


What is a web api? Which protocol is used in a web api?

552


How do you handle server controls?

661


What is server side routing?

511


What are the components of ado.net?

539


List the events in page life cycle.

556


What is http pipeline in asp.net?

522


Can we have multiple web config files for an asp.net application?

539


How does exception management works in ASP.NET?

620


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

543