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
Why do we use asp.net?
What asp.net control can embed xaml into asp.net pages?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
Differentiate between client-side and server-side validations in web pages.
What is form submit?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
What is clickid?
Using code explain Configuration Management
Explain the steps to be followed to use passport authentication.
Explain parts of assembly?
What is a web farm?
What are sessions in asp net?
What is different authentication mechanisms used in ASP.NET?
Explain the difference between value type and reference type?
How can we inherit a static variable?