Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
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 - Constructorcustomcontrol - OnInit - Entercustomcontrol - OnInit - Exitwebpage - OnInit - Enterwebpage - OnInit - Exitwebpage - Page_Load - Enter customcontrol - could be altered here in page load, causing some event to firewebpage - Page_Load - Exitcustomcontrol - OnLoad - Entercustomcontrol - OnLoad - Exit
POSTBACK:customcontrol - Constructorcustomcontrol - OnInit - Entercustomcontrol - OnInit - Exitwebpage - OnInit - Enterwebpage - OnInit - Exitcustomcontrol - LoadViewState - Entercustomcontrol - LoadViewState - Exitwebpage - Page_Load - Enterwebpage - Page_Load - Exitcustomcontrol - OnLoad - Entercustomcontrol - 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 - Exitcustomcontrol - OnSelectedIndexChanged - Exit
Remember Me