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
in which protocol ASP.NET WEB API Work?
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj
What is enableviewstate in asp net?
Explain authorization levels in .net ?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
Explain an object, class and method.
Difference between overriding and overloading?
What is the parent class of all web server control?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
If you are using components in your application, how can you handle exceptions raised in a component?
What is sta?
Difference between singleton and singlecall.
What is a form tag?
Why should i prefer JSP over asp.net or any other web development language..??