What is the difference between postback data and view state data

I am trying to understand the various events in the life cycle of an Asp.net page. I came across this link. It has two stages: the state "Download view" and "Download postback data". I used to think that they both mean the same thing. But this article says that postback data is not data in the view. I do not understand this. If anyone can take a look.

+7
page-lifecycle
source share
5 answers

ViewState data is the data that the ASP.NET encoded end passes to the client in a hidden _ViewState field. This is basically a page, as it was when it was sent to the client.

PostBack data is the data that the user sends.

For example, suppose you have a text box on a page defined like this:

 <asp:TextBox id="TextBox1" runat="server" text="Some Text" /> 

You enter My user input in the text box and submit the form. Some Text will represent ViewState data, and My user input will represent PostBack data.

EDIT . And if you want to know more about ViewState, there is a great article here: A True Understanding of Viewstate .

+14
source share

The view state was the current state when the page was displayed in the browser.

Postback data is what the user modified and resubmitted.

+10
source share

View state means temporarily storing the contents of fields when a postback tool that is a form can be redirected from one form to another.

+1
source share

This is a msdn article . This somehow explains it so beautifully using images.

0
source share

viewstate - this is when the page is first displayed in the browser (page loading) Subsequent data is when the user made the changes and submitted the form;

0
source share

All Articles