ASP.NET PreInit is the first event of asp.net page life cycle. And fired before page initialised. If the AutoEventWireup attribute is set to false, the events need to be wired up manually.
Syntax
ASP.NET PreInit Event and AutoEventWireup Example - Default.aspx
ASP.NET PreInit Event and AutoEventWireup Example - Default.aspx.cs