Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How long the items in ViewState exists?

1397


What is the use of session state and application state and difference between them?

863


In which situation can you not use a viewstate?

908


How do I upload a file from my ASP.NET page?

1002


What is view state management in asp net?

865


Explain why datareader is useful?

933


From which base class all web forms are inherited?

922


Who is using asp.net?

898


Why do we need master page in asp.net?

901


What is a web api endpoint?

988


What is the difference between rest and restful?

1003


What is the difference between equals() and == in c#?

940


What are the different kinds of assemblies?

891


Is asp.net still used?

966


How Session use Cookies in State Management?

999