What is view state?

Answer Posted / santosh kakani

ViewState is used to maintain state between 2 subsequent
resuests to same page by same client

example
int i=10

ViewState.add("key",i) // here i is value

to retrive view state

int j = Convert.toInt32(ViewState["key"]);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is RPC? What is the use of it?

600


Will my .net app run on 64-bit windows?

595


What is SOAP? How you will do windows and forms authentication?

576


How can you assign an rgb color to a system.drawing.color object?

544


Explain me what is the difference between a class and an object, and how do these terms relate to each other?

494






Explain what does managed mean in the .net context?

499


What is RCW (Run time Callable Wrappers)?

1949


Explain how to rename a table using sql queries?

547


What are the advantages of .net core?

524


What are Attributes in .NET?

575


Tell us the difference between the while and for loop. Provide a .net syntax for both loops?

535


Is there built-in support for tracing?

566


How to produce an assembly?

556


Do you know what is lambda expressions in c#?

544


Can any object be stored in a viewstate in .net?

601