What Are The Difference Between AutoEventWireup="true" and
AutoEventWireup="False"

Answer Posted / anil jadhav

here is the proper valid answer
AutoEventWireup attribute
AutoEventWireup is a Boolean attribute that indicates
whether events of a Web Forms page are autowired.The default
value for AutoEventWireup is TRUE.

In Visual Basic .NET or in Visual Basic 2005, the designer
performs this binding using the Handles keyword in the
declaration of the event-handler method.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load

The ASP.NET page framework supports an alternative mechanism
that uses the AutoEventWireup attribute of a Web Forms page
to automatically associate page events and event-handler
methods. If the AutoEventWireup attribute of the @ Page
directive is set to TRUE (or if it is not specified because
its default value is TRUE), the ASP.NET page framework
automatically calls page event-handler methods.

For example, the Page_Init and Page_Load event-handler
methods are explicitly called by the ASP.NET page framework,
without using the Handles keyword or an explicit event delegate.

Conclusion
When you explicitly set AutoEventWireup to TRUE, Visual
Studio .NET or Visual Studio 2005, by default, generates
code to bind events to their event-handler methods. At the
same time, the ASP.NET page framework automatically calls
the event-handler methods based on their predefined names.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is paging in context of Memory?

646


Explain automatic memory management in .net.

588


What is postback in asp net?

562


What is http protocol and how it works?

525


How long should a session id be?

520






What is asp according to you?

525


What’s the difference between response .redirect and server.transfer?

510


How can we prepairing Interview

1880


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

1832


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

537


How you can stop the validation of ASP.NET controls from client side?

528


What are the steps to follow to host a web application on a web server?

589


Where code pages are used?

688


What is the difference between system.stringbuilder and system.string

255


Can the dictionary object be created in client?s scope ?

1984