The major difference between Page_Load
and Page_PreRender
is that in the Page_Load method not all of your page controls are completely initialized (loaded), because individual controls Load()
methods has not been called yet. This means that tree is not ready for rendering yet. In Page_PreRender
you guaranteed that all page controls are loaded and ready for rendering. Technically Page_PreRender
is your last chance to tweak the page before it turns into HTML stream.