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

explain code with multi inhertance

0 Answers  


How do you use css in asp.net?

8 Answers   iBridge,


What are the various authentication mechanisms in ASP.NET ?

1 Answers   Digital GlobalSoft, Satyam,


Explain the difference between debug.write and trace.write?

0 Answers  


What is the default timeout for a cookie?

0 Answers  






What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

8 Answers   Siebel Systems,


What is early binding and Late binding. Difference which is better ?

2 Answers   DELL,


What is difference between response.redirect and server.transfer ?

2 Answers   Kalinga Software, Satyam,


I have a datagrid of 10 rows and I am updating the fifth row using template column edit. How wil u know that the row is updated, so that it can be send to database for updating the respective table?

3 Answers  


Why session is necessary in web application?

0 Answers  


What is shadowing?

2 Answers   Syntax Softtech,


What websites use asp.net?

0 Answers  


Categories