In what order do the events of an ASPX page execute. As a developer is it important to understand these events?

Showing Answers 1 - 5 of 5 Answers

Binda Joshi

  • Mar 10th, 2005
 

Page InitPage LoadControl Events- Change event, Action eventPage UnloadDispose

  Was this answer useful?  Yes

Babu Rajendra PRasad

  • Aug 3rd, 2005
 

if you try to access it in Page_Load that is way earlier than Control's own  
Render method. See ther Page/control lifecycle goes like this for the Page  
and controls (being already in the controls collection, dynamic ones play  
catchup) 
 
1. Instantiate 
2. Initialize 
3. TrackViewState 
4. LoadViewState (postback) 
5. Load postback data (postback, IPostBackDatahandler.LoadPostdata) 
6. Load 
7. Load postback data for dynamical controls added on Page_Load (postback) 
8. Raise Changed Events (postback, 
IPostBackDatahandler.RaisePostDataChanged) 
9. Raise postback event (postback, IPostBackEventHandler.RaisePostBackEvent) 
10.PreRender 
11. SaveViewState 
12. Render 
13. Unload 
14. Dispose 
null

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions