Newbie Question - Page Load Events

  • Thread starter Thread starter damiensawyer
  • Start date Start date
D

damiensawyer

Hello all,

I have a couple of different custom controls on a master page.

Can some one please tell me how I control which order the Page_Load
events of the controls fires in?

Thanks very much in advance.


Damien Sawyer
 
I don't believe there is a way to control that. However, code in the Load
event of controls is not supposed to be affected by when it happens, it is
supposed to be independent of other controls and code. If the order in which
something in a control's code happens relative to other controls, you should
write a subprocedure and call it from your Page_Load event so that you have
complete control over what order things happen in. Good Luck!
 
Back
Top