ViewState Study
you need to understand iterations of a page of the lifecycle of any given page. When you set up a click event, this genrates __VIEWSTATE handling VisualStudio identifies and silently builds in your solution/project.
viewstate is essentially handled like 1 large string or snapshot of the original contents of a page and returns like a hidden label to the page to handle…
if you look at the code of your page check out
input type=”hidden” name=”__VIEWSTATE”"
Consider if you need to make an experience more than one page…
view state hepls youstep trough the 6 major components or page states of a page’s life.
use the debugger and
set breakpoints on the stages of initialization
1 page load method - 1st default initialization of the page
creates an instance of class- the first incarnation of the page
2 The server deserializes the viewstate
event handler on postback and updates the controls
3 Asp adjust page further according to control changes
each control renders itself back
as html in a recursive arrangement to the browser
4 asp releases page object fromm memory
5 then all server side state is released - very little is left on the server at this point and is important for large scale distribution of yor pages
6 results are displayed to the client
use QuickWatch on anypoint in our code to help also…
Digg it | Save to del.icio.us | Netscape | Reddit | Stumble It!
- - - - - S P O N S O R I N G A D V E R T I S M E N T - - - - -