help me to understand viewstate
Posted
by EquinoX
on Stack Overflow
See other posts from Stack Overflow
or by EquinoX
Published on 2010-04-22T01:08:53Z
Indexed on
2010/04/22
1:13 UTC
Read the original article
Hit count: 200
ASP.NET
|page-lifecycle
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?
© Stack Overflow or respective owner