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 do you mean by serialize and marshalbyref?
What is the difference between runtime version and version?
Where can I get information on cookies in asp.net?
Briefly describe the role of global.asax?
What do you mean by query string?
Explain the significance of routing? : asp.net mvc
What describes a query?
What is a postback in asp net?
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
What is full trust in asp.net?
How can we identify that the Page is Post Back?
What is ispostback property?
Apart from IDE what are the enhancements in asp.net 2.0?
What is the difference between stored procedure vs function?
How can you enable impersonation in the web.config file?