1.

What are the advantages and disadvantages of ViewState?

Answer»

Advantages:

  • It works at client side so it doesn't put any LOAD on the server 
  • Easy to implement
  • VIEWSTATE ensures security because it stores the DATA in encrypted format.

Disadvantages:

  • It can be performance overhead if we are going to store a larger amount of data because it is associated with page only.
  • Does not track across pages. ViewState information does not automatically transfer from page to page.
  • A good hacker can get the data very easily by DECODING the value of the ViewState. One can’t store sensitive data in the ViewState.
  • It does not have any support for MOBILE devices.


Discussion

No Comment Found