What is viewstate?

Answers were Sorted based on User's Feedback



What is viewstate?..

Answer / supriya

Item stored in ViewState exist for the life of the current
page.This includes postbacks (to the same page).

Is This Answer Correct ?    6 Yes 0 No

What is viewstate?..

Answer / nithya

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 ?    6 Yes 0 No

What is viewstate?..

Answer / ghouse basha shaik

ViewState is the process of maintaining control properties
after postback implemenation. This is done internal using
Hidden fields.

Is This Answer Correct ?    6 Yes 1 No

What is viewstate?..

Answer / yahoo

hathi.

Is This Answer Correct ?    2 Yes 0 No

What is viewstate?..

Answer / sivadatta kodali

This concept comes in the state management.For Asp.net
server controls implicitly the state of control will be
maintained with the support of viewstate.View state will
maintain some information at the Html Hiddenfield and the
will be Encrypted.

If u want to set the value explicitly.

viewstate["Key"]=value;

If u want to Read the value from the viewstate

viewstate["key"].Tostring();

Is This Answer Correct ?    1 Yes 0 No

What is viewstate?..

Answer / 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

More ASP.NET Interview Questions

In how many ways we can retrieve table records count?

0 Answers  


What are different types of api?

0 Answers  


Are cookies client side or server side?

0 Answers  


Hi please tell me what is ISNOTPOSTBACK,POSTBACK,AUTOPOSTBACK and also the extensions of aspx,asmx,ascx its urgent plz reply me soon....

6 Answers   Logica CMG,


Project Architecture (3tier, n-tier)

1 Answers   Syntel,






What are server-side comments in ASP.NET?

0 Answers   Winsol Solutions,


write a sample code make use of xmltext writer

1 Answers   GCI,


how to create bin folder in asp.net2.0

8 Answers  


How do active server pages work?

0 Answers  


what is diffgram ?

3 Answers  


Which method do you invoke on the DataAdapter control to load your generated dataset with data?

2 Answers   Siebel Systems,


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


Categories