What is Viewstate ? What are the advantages and disadvantages of it view state?

  .Net Interview Questions

What is Viewstate ? What are the advantages and disadvantages of it view state?

View state is used to retain the state of the server side objects between post backs.

Advantages :
-Simple for page level data
-Encrypted
-Can be set at the control level.

Disadvantages :
-Overhead in encoding view state values
-Makes a page heavy

(Visited 18 times, 1 visits today)