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

Explain the difference between managed and unmanaged code?

466


What is a formatter in .net?

582


Difference between dispose and finallize method?

673


What tools can I use to develop .net applications?

577


Is .net front end or backend?

586






What is a strong name in .net?

596


What is the difference between function and stored procedure?

591


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

543


What is STA in .NET?

649


How do you generate a strong name?

608


Explain attributes in dot net?

576


Explain the difference between garbage collections in .net 4.0 and earlier versions?

549


What are the two main parts of the .net framework?

572


Explain about managed heap?

639


Is there a way to suppress the finalize process inside the garbage collector forcibly in .net?

518