what is view state?

Answer Posted / madhunathanv

ViewState is confined only to the page cycle ,
When the Viewstate is declared in the particular Method in
the Page ,it can be called in other methods or Events when
it is in Need.
ie.., it persists its state across postbacks
**********************'
ViewState Declared As:'
**********************'
ViewState["ViewStateVariableName"] = 1;
**********************************'
Above ViewState Can be called As: '
**********************************'
int number = (int) ViewState["ViewStateVariable"];

AFAIK

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is directive in asp net?

556


What is a server cookie?

511


What’s the catch?

632


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

536


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

552






If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

559


How can you debug your.net application?

566


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

563


Why would a company use an application service provider?

500


What is the use of ASP.NET routing?

568


Explain the difference between server control and html control.

486


Explain the difference between singleton and single call?

547


Explain security types in asp.net?

549


How to deploy/publish webservices?How many ways?Plz explain me

1848


Is post back in asp.net?

528