Viewstate
advantages and disadvantage of viewstae in asp.net.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
kiran kumarPosted Feb 26, 2010, 5:34 AM
- No server resources required
- simple implementation
- automatic retention of page and control state
- Enhanced security features. The values in view state are hashed, compressed, and encoded for Unicode implementations.
Disadvantages:
- Performance. The view state is stoed in the page itself, so increase the page size.
- Security. The view state is stoed in a hidden field on the page. Although view state stores data in a hashed format, it can be tampered with.
Lalit MPosted Feb 26, 2010, 5:02 AM
2. Flexibility. It is possible to enable, configure, and disable ViewState on a control-by-control basis, choosing to persist the values of some fields but not others.
2. ViewState is not suitable for transferring data for back-end systems. That is, data still has to be transferred to the back end using some form of data object.