help me to understand viewstate
- by EquinoX
I was just reading this article here to understand about how view state and ASP.NET page cycle works.
I just don't understand this part here:
If this were the case, then in step 3
the Label's Text property would be
assigned to "Hello, World!" in the
instantiation stage, but would not be
reassigned to "Goodbye, Everyone!" in
the load view state stage. Therefore,
from the end user's perspective, the
Label's Text property would be
"Goodbye, Everyone!" in step 2, but
would seemingly be reset to its
original value ("Hello, World!") in
step 3, after clicking the Empty
Postback button.
This paragraph is after the three step 1, step 2, step 3 boxes. Why wouldn't the label's text property be reassigned to "Goodbye, Everyone" in the load view state?