03 Handout 1 Flashcards
is part of the .NET infrastructure that provides a programming model and various services that are necessary to build up web applications.
ASP .NET Web Forms
What is the main benefit of ASP .NET Web Forms?
the level of abstraction that it provides compared to the request/response approach and the creation of the HTML that is sent to the client
The response to change in the page content is enhanced through the use of
ViewState
is how ASP.NET Web Forms take this customized approach and transfer state information between the browser and the server
ViewState
allows the developer to interact with information at various points in the HTML creation phase
ASP.NET lifecycle
What are the seven (7) lifecycle stages?
- Page Request
- Start
- Initialization
- Load
- Postback Event Handling
- Rendering
- Unload
This state happens before the page-calling process starts. It is when the system determines whether run-time compilation is necessary, whether cached output can be returned, or whether a compiled page needs to be run.
Page Request
The page starts to do some processing on the HTTP Request. Some base variables are initialized, such as Request, Response, and the UICulture
Start
During this phase, the controls on the page are initialized and assigned their unique IDs. Master pages and themes are applied as applicable
Initialization
If the request is a postback, control information is loaded with the information recovered from the view state
Load
If the request is a postback, all the various controls fire their event handlers as needed. Validation also happens at this time.
Postback Event Handling
Before the rendering state starts, ViewState is saved for the page and all of the controls as configured.
Rendering
This happens after the content is created and sent to the client. Objects are unloaded from memory and cleanup happens.
Unload
Raised after the start state is complete and before the initialization state begins
PreInit
This event is raised after all the controls have been initialized. It is used to initialize control properties
Init