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
What are the disadvantages of view state?
Is asp.net core faster?
Explain the difference between singleton and single call?
How do you hide the columns?
What are the features of asp.net mvc?
Fetch one page value to another page without using state-managment ?
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 About duration in caching technique
What are type/key pairs in client script registration?
What are the different types of proxy patterns?
What is a swagger in web api?
Explain different types of validators in asp.net?
Explain automatic memory management in .net.
What is asp.net used for?
What is the extension of master page in asp.net?