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 Full trust permission set in .Net

1915


Explain what relationship is between a process, application domain, and application?

621


What is Ajax design pattern in .NET?

653


What is the native image generator?

608


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

1578






Do you know what is linq?

588


What's wrong with a line like this? Datetime.parse(mystring);

565


How to create properties and methods using controls?

594


How inheritance works in .net?

563


What is the concept of inheritance and how it works in .net?

544


Explain me difference between public and static modifiers?

520


What are the similarities and difference between class and structure in .net?

532


Explain me what is encapsulation?

551


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

523


Differentiate between managed and unmanaged code?

613