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
What is globalization and localization in asp net?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
To bind columns manually which tags do you need to add within the asp:datagrid ?
To redirect the user to another page which method do we use without performing a round trip to the client?
Why do you use the app_code folder in asp.net?
When does a session actually start?
What can you do with asp.net?
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj
Please briefly explain the usage of global.asax?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
What are the new data controls in asp.net 2.0?
What is the concepts of globalization and localization in .net?
What is session in http request?
How can we create custom controls in asp net?