Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET PreInit Event

ASP.NET page PreInit event is first event of asp.net page life cycle and fired before page initialised.

Syntax

ASP.NET PreInit Event Example - Default.aspx

ASP.NET PreInit Event Example - Default.aspx.cs

Above example will produce following output

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary