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 does aspcompat="true" mean?

652


Where is session data stored in asp net?

607


What is asp.net master page?

641


What is the difference between globalization and localization?

564


How can we prevent browser from caching an aspx page?

607






What is server transfer?

586


What are merge modules?

640


What is round trip in asp.net?

594


Differentiate globalization and localization.

671


How to implement Authentication and Authorization?

652


9. Why should we hire you over the others waiting to be interviewed?

2257


What is full form of asp.net?

608


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

710


Explain the different types of directives in .net?

596


What is the maximum timeout we can set for Cookies?

626