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 ?    29 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

What is page request in asp.net?

0 Answers  


how many databases and tables are uses in one project?

2 Answers  


What is the syntax for datagrid and specifying columns ?

2 Answers   Microsoft,


A web service can only be written in .net? State whether true or false.

0 Answers  


I’m having some trouble with cas. How can I diagnose my problem?

0 Answers  






What are the main requirements for caching?

0 Answers  


What is Fragment Caching in ASP.NET?

2 Answers   MCN Solutions, pspl, Wipro,


can we place the same DLL in debug folder two times? (without using strong name )

9 Answers   TCS,


How does asp net store session ids by default?

0 Answers  


What is inproc mode in session?

0 Answers  


Explain server control extensibility with reference to asp.net 2.0 ?

0 Answers  


Explain a program using razor view engine to create a simple application? : asp.net mvc

0 Answers  


Categories