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
How can we access static variable?
How do you secure your configuration files to be accessed remotely by unauthorized users?
9. Why should we hire you over the others waiting to be interviewed?
Where can I get the details on migration of existing projects using various technologies to asp.net?
What is ispostback method in asp.net?
How does windows service lifecycle differ from a .standard. Exe?
Can we have multiple master pages in asp net?
Why do we use sessions?
Which is the parent class of the web server control?
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites
Explain the purpose of storyboard.targetproperty.
Describe the difference between inline and code behind - which is best in?
What are the difference between overriding and overloading?
How may clustered index we can create in table?
Which is better union or union all?