Interview Questions forum : Ask your doubt
 
 
Please login or register to take complete advantage of this forum
September 05, 2008, 09:32:53 PM
635 Posts in 231 Topics by 812 Members
Latest Member: abadri.06
Mywalkin Forum  |  Interview Preparation  |  Microsoft Technologies Interview Questions  |  AutoEventWireup « previous next »
Pages: [1]
Author Topic: AutoEventWireup  (Read 290 times)
mamuni
Newbie
*
Posts: 27


View Profile Email
« on: July 01, 2008, 08:13:45 AM »


What is the meaning of “AutoEventWireup”?
Logged
kunni
Newbie
*
Posts: 3


View Profile
« Reply #1 on: July 03, 2008, 04:44:34 AM »

Indicates whether the control's events are autowired. true if event autowiring is enabled; otherwise, false. The default is true.
Logged
pardeep.bassi
Newbie
*
Posts: 1


View Profile
« Reply #2 on: July 03, 2008, 05:46:56 AM »

In the case where AutoEventWireup attribute is set to false (by default), event handlers are automatically required for Page_Load or Page_Init. However, when we 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.

A thing to be kept in mind is that the AutoEventWireup attribute of the Page directive is set to true by default for the machine (check out the value of this attribute in the machine.config) but set to false by default for a .aspx page). So if it is missing, since by default it is true (i.e., at the machine level), the page framework calls page events automatically, specifically the Page_Init and Page_Load methods. In that case, no explicit Handles clause or delegate is needed.

Logged
Pages: [1]
Mywalkin Forum  |  Interview Preparation  |  Microsoft Technologies Interview Questions  |  AutoEventWireup « previous next »
    Jump to:  


    Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | Sitemap