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 asp.net globalization?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Explain server control extensibility with reference to asp.net 2.0 ?
Explain the difference between response.redirect vs server.transfer
Explain how can we inherit a static member?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is the maximum number of classes that can be contained in one dll file?
What is the purpose of App_Code folder in ASP.NET? Why we this?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
What is full trust in asp.net?
how to transfer the file from client to server using asp.net
How can you debug your.net application?
Is asp.net a programming language?
What is an example of an application service provider?
What is a web api endpoint?