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

How does u handle this COM components developed in other programming languages in .NET?

1680


What do you mean by Code Access Security in .NET?

642


What is the use com component in .net?

595


Write a program to create a user control with name and surname as data members and login as method and also the code to call it.

529


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

611






Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?

603


What relationship is between a process, application domain, and application?

559


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

529


Explain me why do we use msmq?

577


What is the new three features of COM+ services, which are not there in COM (MTS)

1547


If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?

601


Write the .net syntax for 'for loop'?

579


What are multicast delegates?

590


What are the improvements made in cas in .net 4.0?

525


Explain what is an anonymous method and how is it different from a lambda expression?

525