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
What is directive in asp net?
What is a server cookie?
What’s the catch?
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?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
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?
How can you debug your.net application?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
Why would a company use an application service provider?
What is the use of ASP.NET routing?
Explain the difference between server control and html control.
Explain the difference between singleton and single call?
Explain security types in asp.net?
How to deploy/publish webservices?How many ways?Plz explain me
Is post back in asp.net?