Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is AutoEventWireup? 1

Status
Not open for further replies.

karma12

Programmer
Oct 28, 2005
3
US
When I created zipsearch.aspx file, the following
code was generated:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="zipsearch.aspx.vb" Inherits="ZipcodeDB.zipsearch"%>

What is AutoEventWireup? - what is the effect is set to true or false?

Thanks
 
When you set the value of the AutoEventWireup attribute to true, the ASP.NET runtime does not require events to specify event handlers like Page_Load or Page_Init. This means that the Handles keyword in Visual Basic .NET does not have to be used in the server script in the Web Form.

By default, when the ASP.NET Web Application is created in Visual Studio .NET, the value of the AutoEventWireup attribute is set to false in the .aspx page and event handlers are automatically created. This article describes the default settings of the AutoEventWireup attribute and lists some helpful code.

from here
TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top