What is viewstate?

Answer Posted / sivadatta kodali

This concept comes in the state management.For Asp.net
server controls implicitly the state of control will be
maintained with the support of viewstate.View state will
maintain some information at the Html Hiddenfield and the
will be Encrypted.

If u want to set the value explicitly.

viewstate["Key"]=value;

If u want to Read the value from the viewstate

viewstate["key"].Tostring();

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the various authentication mechanisms in asp.net.

483


Define managed code and managed data in .net?

508


Is viewstate secure?

505


Define authentication and authorization.

617


Why mvc is faster than asp.net? : Asp.Net MVC

526






What is application and session in asp.net?

534


What is the maximum timeout we can set for Cookies?

548


how to debug web services on consumer side?

570


How do you open a page in a new window?

550


What are the various session state management options provided by asp.net?

538


What is the use of placeholder control?

546


How do I know asp.net mvc version? : Asp.Net MVC

494


What is query string in asp.net?

557


What is a session in programming?

555


What is the difference between dispose() and finalize()?

493