How do you relate an aspx page with its code behind page ?

Answers were Sorted based on User's Feedback



How do you relate an aspx page with its code behind page ?..

Answer / sivasaravanan

using Page directive

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="LoginInformation.aspx.cs"
Inherits="LoginInformation" Title="Untitled Page" %>

Is This Answer Correct ?    28 Yes 6 No

How do you relate an aspx page with its code behind page ?..

Answer / bhavani

This is the top line of your export.aspx page.
<%@ Page Language="C#" CodeFile="Export.aspx.cs"
Inherits="Health_Export" %>
--------------------------------------...
this is the class Health_Export in your code behind which
your aspx page is inheriting.
public partial class Health_Export : System.Web.UI.Page

Is This Answer Correct ?    10 Yes 4 No

How do you relate an aspx page with its code behind page ?..

Answer / banupriya

<%@ Page Language="C#" AutoEventWireup="false"
CodeFile="dd.aspx.cs" Inherits="ddsolved" %>

Is This Answer Correct ?    5 Yes 0 No

How do you relate an aspx page with its code behind page ?..

Answer / vimal

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

ya this is the correct answer in aspx page we are we are
defined d codefile naaa

Is This Answer Correct ?    4 Yes 0 No

Post New Answer



More ASP.NET Interview Questions

Life cycle of ASP.NET page when a request is made ?

4 Answers   MMTS,


What is the difference between typeof() vs gettype()?

0 Answers  


What is a 401 redirect?

0 Answers  


What r the remotable objects. and how u make an application remotable

1 Answers  


What methods are fired during the page load?

3 Answers  






What is cookies cache and session?

0 Answers  


my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?

2 Answers  


What is the difference between User Controls and Master Pages

22 Answers   IBM, TCS, Deloitte, IntraLogic, Markit,


Can you clarified A Web service can only be written in .NET or not?

0 Answers   Siebel,


What is razor? : asp.net mvc

0 Answers  


What is the part of url?

0 Answers  


under which namespaces connection strings can be defined?

4 Answers  






Categories