Answer Posted / madhunathanv
Sorry,
in the above example of declaration and calling View state
Key Name Should the same but it was not so while declaring
the key name was "ViewStateVariableName" and while calling
the key name was "ViewStateVariable" which won't work if
so, it was by mistake,
ie..,when called name was changed..,
Cool:-)
Below is the Correct Format:
**********************'
ViewState Declared As:'
**********************'
ViewState["ViewStateVariableName"] = 1;
**********************************'
Above ViewState Can be called As: '
**********************************'
int number = (int) ViewState["ViewStateVariableName"];
AFAIK
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a cookie and a pixel?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
Are cookies stored on server or client?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
How can we pass info between 2 asp.net pages?
Why do we use sessions?
What is the purpose of asp.net?
What is http protocol and how it works?
What is clr? Difference between clr & cts?
What are the uses of list view control in Asp.net?
WSDL means?
List the major built-in objects in asp.net?
What are different types of api?
Explain about Multi-Language integration?