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 a global postback url?
What is odata in web api?
What's the ASP.Net Application life cycle?
Describe how to implement globalization and localization in the use interface in .net.
What is full form of asp.net?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What are custom controls?
What is windows active directory authentication?
What is an axd file?
What is the difference between abstract class vs interface? Can give me the real time examples?
Which method do you use to kill explicitly a users session?
How Session outproc in Sqlserver stored?
Explain the difference between inline and code behind - which is best in?
Explain an object, class and method.
How can we create pie chart in asp.net?