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
Explain the working of passport authentication.
How to disable disable browser's Back button in asp.net (JavaScript)?
What is base class of .net?
What is new asp.net core?
For which does this Codebehind="MyCode.aspx.cs" is relevent to ?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What are the options in ASP.NET to maintain state?
How asynchronous call can be implemented using delegates?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
Describe a bubbled event and how it is used ?
About CLR, reflection and assemblies?
Do you support digital rights management to protect my videos?
Can more than one person use the same login?
Why do we need url encoding?
How response object is related to asp's response object?