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 diff. Between abstract class and an interface?
What is the good practice to implement validations in aspx page?
Define a static class?
What is custom events?
How to use multiple scriptmanager controls in a web page?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Can we have multiple master pages in asp net?
in which protocol ASP.NET WEB API Work?
What is the maximum timeout we can set for Cookies?
What is s2s tracking?
What are the disadvantages of using session?
If 200 is for all successful operation then why do we have 201 response codes?
Explain about the .NET framework?
Why we use content place holder in asp.net?
Is it possible to migrate visual interdev design-time controls to asp.net?