Figure 1. Understand the ASP.NET Event Model.
An understanding of the event model in ASP.NET is essential when you use dynamic controls. Using the PreRender event is recommended when you're storing data or placing new data back on the page. As you can see, PreRender happens after all other events have fired.