What is AUTOEVENTWIREUP

AutoEventWireup is a Boolean attribute that indicates whether the ASP.NET pages events are auto-wired.

Note: In the above case, ASP.NET compiles the code-behind page on the fly. We have to note that this compilation step only occurs when the code-behind file is updated. Whether the file has been updated or not, well this is detected through a timestamp change.The AutoEventWireup attribute may have a value of true or false. When an ASP.NET Web Appli

cation is created by using Microsoft Visual Studio .NET, the value of the AutoEventWireup attribute is set as false.

We can specify the default value of the AutoEventWireup attribute in the following locations:

The Machine.config file.

The Web.config file.

Individual Web Forms (.aspx files).

Web User Controls (.ascx files)

The value of the AutoEventWireup attribute can be declared in the section in the Machine.config file or the Web.config file.We must not set the value of the AutoEventWireup attribute to true if performance is key consideration.If we set the value of the AutoEventWireup attribute to true, the ASP.NET page framework must make a call to the CreateDelegate method for every Web Form (.aspx page), and instead of relying on the automatic hookup, manually override the events from the page.