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 asp net theme?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?
Which platform does Microsoft .NET use for exchanging data between applications?
Explain http handlers? Where we can use the http handlers?
Explain diff between dataset and datareader?
What is the full form of asp.net?
In which event of the page viewstate is available?
Why do we need a web application session?
How are sessions stored?
What is Dynamic Web and discuss its usage with the help of real life examples?
How to bind all the binding controls in a page at once in ASP.NET?
What is the use of session?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
How do you implement sql caching in asp.net?
What are the layouts of ASP.NET Pages?