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
Is asp.net a language?
Name the two properties are on every validation control?
Define a static class?
What is asp net application object?
Define a multilingual website?
How does asp.net work?
Briefly describe the role of global.asax?
What are the main differences between asp and asp.net?
What is a swagger in web api?
What is a user session?
Explain Life cycle of ASP.NET page when a request is made.
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What symbol specifies the beginning of a query string?
Define msil.
How does viewstate work?