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
What is form submit?
Explain the disadvantages of viewstate?
What is difference between asp state management and asp.net state management?
What is variable and constant in .net programming language?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
What is difference between view state and session state?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What is the purpose of url encoding?
What is server infrastructure?
What are the advantages of asp.net mvc framework? : asp.net mvc
What is query string? What are its advantages and limitations?
Define caching.
What is custom attribute?
Is it possible to write code in many languages in one asp.net project?