Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET PreInit Event and AutoEventWireup

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

Above example will produce following output

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary