Public Property AutoEventWireup As Boolean
Dim instance As PagesSection Dim value As Boolean value = instance.AutoEventWireup instance.AutoEventWireup = value
public bool AutoEventWireup { get; set; }
public: property bool AutoEventWireup { bool get (); void set (bool value); }
/** @property */ public boolean get_AutoEventWireup () /** @property */ public void set_AutoEventWireup (boolean value)
public function get AutoEventWireup () : boolean public function set AutoEventWireup (value : boolean)
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.
The following code example shows how to use the AutoEventWireup property.
' Get the current AutoEventWireup property value. Console.WriteLine( _ "Current AutoEventWireup value: '{0}'", _ pagesSection.AutoEventWireup) ' Set the AutoEventWireup property to false. pagesSection.AutoEventWireup = False
// Get the current AutoEventWireup property value. Console.WriteLine( "Current AutoEventWireup value: '{0}'", pagesSection.AutoEventWireup); // Set the AutoEventWireup property to false. pagesSection.AutoEventWireup = false;
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.