What Are The Difference Between AutoEventWireup="true" and
AutoEventWireup="False"
Answer Posted / kapil sharma
Dont be too confuse in this question for understand
actually AutoEventWireup is written in page directive like
this
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default2.aspx.cs" Inherits="Default2" %>
by default it is "true", that means all the events that are
automatically rises when page is loading
if AutoeventWireUp=false then we have to manually write
events and delegates like this
public _Default() // ctor
{
Load += new EventHandler(Page_Load);
PreInit += new EventHandler(Page_PreInit);
}
protected void Page_Load(object sender, EventArgs e)
{
// ...
}
protected void Page_PreInit(object sender, EventArgs e)
{
// ...
}
So by default its means all event automatically wire up
when page load and if its false we have do some extra
work....
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between server control and html control.
Which is better php or asp.net?
What are the different methods of session maintenance in asp.net?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What is the part of url?
About CLR, reflection and assemblies?
What are session state modes?
Can you set the session out time manually?
What are the features of asp.net mvc?
What is another word for redirect?
Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?
What is a pixel url?
How can I create master page in asp net?
What is voluum?
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?