PagesSection.AutoEventWireup Property
.NET Framework 2.0
Gets or sets a value indicating whether events for ASP.NET pages are automatically connected to event-handling functions.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_AutoEventWireup () /** @property */ public void set_AutoEventWireup (boolean value)
public function get AutoEventWireup () : boolean public function set AutoEventWireup (value : boolean)
Not applicable.
Property Value
true if events for ASP.NET pages are automatically connected to event-handling functions; otherwise, false. The default is true.When AutoEventWireup is true, ASP.NET does not require events to specify event handlers like Page_Load or Page_Init. This means that the Handles keyword in Visual Basic is not required in the server script in the Web Form page.
By default, when the ASP.NET Web application is created in Visual Studio, the value of the AutoEventWireup attribute is set to false in the .aspx page or .ascx control, and event handlers are not automatically created. Do not set AutoEventWireup to true if performance is a key consideration.