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

What is asp.net web application?

994


What websites use asp.net?

982


Describe SOA and the tenets of it?

994


What is data binding in asp net?

1045


what are the ihttphandler and ihttphandlerfactory interfaces ?

902


What is the difference between cache and cookies?

958


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

982


What threading model used in asp and asp.net?

1010


Explain the server control events of asp.net ?

941


How can we communicate with each server in N-tier Architecture? and what are the methods?

2192


Can asp.net work on an nt server?

983


Please brief not about xsd,xslt & xml?

912


Explain the difference between webfarm and webgardens in .net?

918


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

995


How to bind all the binding controls in a page at once in ASP.NET?

927