Home Home    Forum    Blog    Feed your aggregator (RSS 2.0)

The Johnnynine Weblog - ASP.NET Custom Control Lifecycle
A weblog by Johnny Hughes
 
 Monday, July 25, 2005

I always forget the lifecycle of custom server control classes with respect to web page, ie. aspx file.

The following results are based on a drop down list custom control:

customcontrol - Constructor
customcontrol - OnInit - Enter
customcontrol - OnInit - Exit
webpage - OnInit - Enter
webpage - OnInit - Exit
webpage - Page_Load - Enter
    customcontrol - could be altered here in page load, causing some event to fire
webpage - Page_Load - Exit
customcontrol - OnLoad - Enter
customcontrol - OnLoad - Exit

POSTBACK:

customcontrol - Constructor
customcontrol - OnInit - Enter
customcontrol - OnInit - Exit
webpage - OnInit - Enter
webpage - OnInit - Exit
customcontrol - LoadViewState - Enter
customcontrol - LoadViewState - Exit
webpage - Page_Load - Enter
webpage - Page_Load - Exit
customcontrol - OnLoad - Enter
customcontrol - OnLoad - Exit

customcontrol - OnSelectedIndexChanged - Enter
    webpage - xx_SelectedIndexChanged - Enter
        customcontrol - could be altered here in page load, causing some event to fire
    webpage - xx_SelectedIndexChanged - Exit
customcontrol - OnSelectedIndexChanged - Exit

Tuesday, July 26, 2005 5:39:23 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [0]   .NET  | 
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Copyright © 2009 Johnny Hughes. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.