What is ViewState and How it is managed,Its
Advantages/Benefits?

Answers were Sorted based on User's Feedback



What is ViewState and How it is managed,Its Advantages/Benefits?..

Answer / m.sivakumar

ViewState is a speacial object that ASP.NET uses to maintain
the state of page and all webcontrols/ServerControls within
it.

It is in this object preserves the states of various FROM
elements during Postbacks.
It is rendered to client(browser) as a Hidden
variable_VIEWSTATE under<form> tag.
we can also custom values to it.

Is This Answer Correct ?    20 Yes 1 No

What is ViewState and How it is managed,Its Advantages/Benefits?..

Answer / anitha

viewState is a speacial object that ASP.NET uses to maintain
the state of page and all webcontrols/ServerControls within
it.

Is This Answer Correct ?    6 Yes 4 No

What is ViewState and How it is managed,Its Advantages/Benefits?..

Answer / bhoj

is view state is used to persist the web control data across
the post backs.? the answer is NO , because the data of web
control is persisted because of the loadPostbackData() of
life cycle.
view state it will be enable in the OnInitComplete() of page
life cycle,or we can enable at any time of page life cycle
by calling the TrackViewStae() method.
view state is used to store the data at page level.
advantages: if the data is small, store it in view state by
doing this no need to call to database to get the details
but for large data page performance will decrease.

Is This Answer Correct ?    1 Yes 1 No

What is ViewState and How it is managed,Its Advantages/Benefits?..

Answer / kinjal panchal

View State:- The web is a sate less. In asp.net the sate of
the page maintain by Asp.net itself.In asp.net encrypted
values store in the hidden controls and this is maintain by
asp.net itself.

View state is managed by Asp.net itself.
if u wanna check then write "enableviewstate="flase"" in
.aspx page.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

how to edit gridview control in asp.net2.0

1 Answers   3i Infotech,


What is the difference between response.redirect and server.transfer, how to choose one among the other?

3 Answers   247Customer,


What are the modes of updation in an updatepanel?

0 Answers  


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

0 Answers  


What is pre-init event in ASP.NET 2.0 page life cycle?

2 Answers   Fulcrum Logic,






List of words of preprocessor in .net?

0 Answers  


If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ?

1 Answers   Satyam,


Is asp.net and .net are same or different?

0 Answers  


What is the T-SQL equivalent of IIF (immediate if/ternary operator) function of other programming languages?

1 Answers   Syntax Softtech,


Is string a value type or a reference type?

13 Answers  


Is it possible to apply themes to an asp.net application? If yes, then how?

0 Answers  


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

0 Answers   HCL,


Categories