I would like some code to execute at the \"preload\" stage of my usercontrol\'s lifecycle. However the preload event is only available on the Page object. So, I added the
Unless you go with Jason's option, then you're either stuck performing the action in the INIT event (which is before the Viewstate is loaded) or the PAGE LOAD event.
My question is: Is there any reason that the action must be performed in the PreLoad as opposed to the Load events?
Remember, the only thing that the Preload really does is load the Viewstate and PostBack data into the various controls (more info on the lifecycle).
The LOAD event will occur prior to any Control Events (such as button clicks), so you will probably be just fine performing your action there. The only reason not too, is if you don't want the PostBack or Viewstate data to interfere with your process (for whatever possible reason) and then in that case, you can utilize the INIT event.