Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Disadvantages of viewstate/what are the benefits?

4 like 0 dislike
Hello guiys,

What are the disadvantages of viewstate and what are the benefits?

Please give me your feedback
asked 1 year ago by daneim (127,080 points)

1 Answer

1 like 0 dislike
 
Best answer
Disadvantage of viewstate is that additional data is sent to the browser. The benefits are that you do not have to manually manage refreshing the page fields after a submit, (when re-displaying the same page).

Automatic view-state management is a feature of server controls that enables them to repopulate their property values on a round trip (without you having to write any code). This feature does impact performance, however, since a server control’s view state is passed to and from the server in a hidden form field. You should be aware of when view state helps you and when it hinders your page’s performance.
answered 1 year ago by marck_don (191,010 points)

Related questions

4 like 0 dislike
0 answers
16 like 0 dislike
2 answers
5 like 0 dislike
1 answer
14 like 0 dislike
1 answer
1 like 0 dislike
0 answers