Monday, April 13, 2009

ASP.NET Event Load Sequences

Pre-init event
• Ispostback is available but not control view states
• Set Global properties
o Dynamic master page
o Profile properties
o Applied skin/theme settings
• Recreate dynamically created controls

Init Event
• Fires after elements been initialized and skin setting has been applied
• Read or write any specific control properties

Init Complete
• After all initialization been complete
• Implement logic that depends on controls be initialized

Preload
• Process control before they are loaded
• A pre-load for each control
• After this viewstate gets initializes and postback information gets initialized

Load event
• Page load then each control’s load and then any specific control events (change,click etc)

Load complete
• Control all loaded, viewstates been loaded and validated has occured

Prerender
• All databind been called
• All child prerender been called

Save View State
• All values has been created and saved
• Can’t implement logic that we want to appeared they will be ignored
• Can implement logic that used the viewstate

0 Comments:

Post a Comment

<< Home