What is viewstate?

Answers were Sorted based on User's Feedback



What is viewstate?..

Answer / jiten

View state is nothing but curent state of control and page
which can prisist during the postback

By using using u can store the state of control and page in
the hidden filed in cliend side or cline browser

it is store in HF form of encoded 64data

Is This Answer Correct ?    3 Yes 0 No

What is viewstate?..

Answer / sivaprasad

i)Viewstate is nothing but persisting the state of the
controls across postbacks.
ii)In the page lifecycle Init,Load,Prerender(this is the
last stage for viewstate,what data you want to save here we
need modify that and it will be saved).
iii)Maintaining the data with in the page level.

Is This Answer Correct ?    3 Yes 0 No

What is viewstate?..

Answer / nizath ali.u

Hi all this is Nizath Ali,

Viewstate is a client side state management.It
retains the page & control specific values between the
round trips(Post Back).
It always stores the values in one hidden form field
(control of ASP.NET) on the pge.

Brief:
Each webform page & controls on the page consists
of one "viewstate" property.
If we enable the viewstat property as true, it
automatically save the page & control specific values b/w
the round trips.
This viewstate is implemented with one hiddenform
field(control of ASP.NET) called "_VIEW STATE".That is the
viewstate stores the values in this hiddenform field
control.
This hidden form field is automatically created in
every webform page.
Now, what are the values stored in a viewstate
property,that are collected & formatted into a single
encoded string.
Then the encoded string is assigned to the "value"
property of the hiddenform field "_VIEW STATE".
Then it send to the client as apart of the webpage.
This kind of process is done by viewstate.

Drawback:
When we store the large values on the viewstae,it
makes the page slow down.
It stores the values on the "hiddenform field" so
no good security is their.

Is This Answer Correct ?    2 Yes 0 No

What is viewstate?..

Answer / chowdary

It maintain the controls data under postback
implementation.It is implemented based on hidden field
concept.Generally viewstate is disabled for Password type
textboxs.

Is This Answer Correct ?    2 Yes 2 No

What is viewstate?..

Answer / giri

ViewState is (asp.net object) mechanism by which page state
(information)(or values of the current page before postback)
is maintained between page post backs untill the page is running

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

what is roles in asp.net

2 Answers  


What is DataGrid wheater its a Server Control or something else ?

0 Answers   NA,


Caching techniques in .NET?

2 Answers   Microsoft,


What is the difference between table and query?

0 Answers  


What is JIT, what are types of JITS and their purpose ?

3 Answers   Infosys,






You need to retrieve data from a Microsoft SQL Server 2000. Currently you are using an oleDbConnection object to connect to the database server. You need to be able to retrieve the data from the database server in XML format. Which approach would be the most efficient? Select all that apply. Each answer constitutes part of the whole answer. a) Change to the SQL .NET provider. b) Use the ExecuteXmlReader() method of the xxxCommand object c) Use the DOM to create the XML document. d) Use the XmlDocument.Load() method to create the XML Document.

1 Answers   Syntax Softtech,


what is page life cycle state management postback cross page postback types of feilds in gridview gridview events their life cycle cte in sql diff truncate and delete paging concepts in gridview diff bet gridview datalist and repeater what new operations in sql 2005 compared to earlier you get

1 Answers   e4e,


Why do we need asp.net?

0 Answers  


Can we set master page as a start page?

0 Answers  


Where we create sessions for Banking Applications and how to create? expalin with code?

1 Answers   Wipro,


What is interval time of GC in .net

2 Answers  


What are different ASP.NET Web Forms with the technology different from though ASP (1.0-3.0)?

1 Answers   Siebel,


Categories