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 long the items in ViewState exists?
What is the use of session state and application state and difference between them?
In which situation can you not use a viewstate?
How do I upload a file from my ASP.NET page?
What is view state management in asp net?
Explain why datareader is useful?
From which base class all web forms are inherited?
Who is using asp.net?
Why do we need master page in asp.net?
What is a web api endpoint?
What is the difference between rest and restful?
What is the difference between equals() and == in c#?
What are the different kinds of assemblies?
Is asp.net still used?
How Session use Cookies in State Management?