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

You ve defined one page_load event in aspx page and same
page_load event in code behind how will prog run?

Answer Posted / sudhir sheoran

Page load of aspx will be given preference

e.g:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"%>

<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Page");
}
</script>
<head runat="server">
<title></title>
</head>

<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>


And in Code Behind:

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Behind");
}
}

SO Page will be shown as output not behind

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe a Windows Service and its lifecycle ?

1151


What is preprocessor in .net?

978


Give me one example of Web API Routing?

1083


Why select Web API?

1011


What's the ASP.Net Application life cycle?

1109


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

1113


Why is the standalone environment only useful during the development process?

1832


Which authentication uses a combination of windows and iis authentication?

1093


Which methods validate all the controls on a page?

977


What is an example of an application service provider?

872


Explain model, view and controller represent in an mvc application? : asp.net mvc

936


What is the difference between session and viewstate in asp.net?

1118


What is repository pattern in mvc.net? : asp.net mvc

1000


Difference between overriding and overloading?

1270


What is full trust in asp.net?

1090