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
Define msil.
What is data grid view in asp.net?
What is localhost in asp.net?
Describe the Server Control Events of ASP.NET?
Explain in what order a destructors is called.
Explain exception filters?
Explain the Order of events in an asp.net page?
Explain the use of view state?
What is a master page and what does it do?
What’s the use of “GLOBAL.ASAX” file?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
Do you know about caching with the datasource controls?
Does google crawl redirects?
What’s the catch?
What is autopostback in dropdownlist in asp net?