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 / 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


Please Help Members By Posting Answers For Below Questions

How can we access static variable?

1112


How do you secure your configuration files to be accessed remotely by unauthorized users?

1127


9. Why should we hire you over the others waiting to be interviewed?

2809


Where can I get the details on migration of existing projects using various technologies to asp.net?

1108


What is ispostback method in asp.net?

1043


How does windows service lifecycle differ from a .standard. Exe?

1046


Can we have multiple master pages in asp net?

996


Why do we use sessions?

1016


Which is the parent class of the web server control?

1081


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

2168


Explain the purpose of storyboard.targetproperty.

956


Describe the difference between inline and code behind - which is best in?

1078


What are the difference between overriding and overloading?

1102


How may clustered index we can create in table?

1017


Which is better union or union all?

1078