What Are The Difference Between AutoEventWireup="true" and
AutoEventWireup="False"
Answer Posted / uma
Dont read all the those things simply 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)
{
// ...
}
Is This Answer Correct ? | 20 Yes | 1 No |
Post New Answer View All Answers
How do we assign page-specific attributes?
Why cyclomatic complexity is important?
How does the iis work?
What is windows active directory authentication?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What is an imagemap in asp.net?
What is server infrastructure & server components?
What is the difference between session and viewstate?
How can you identify that the page is post back?
What is rending process in ASP.NET?
What is the difference between web config and machine config files?
Explain the server control events of asp.net ?
What is _viewstart?
How does session id work?
What is the namespace to create thread in .net?