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

How to improve performance of web application asp.net mvc? : Asp.Net MVC

0 Answers  


with which controls you worked in Asp.net 2.0?

2 Answers   HP, nTech Solutions,


Is razor a programming language?

0 Answers  


What is Web Gardening? How would using it affect a design ?

1 Answers   Infogain,


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

0 Answers   TCS,






Define an assembly?

9 Answers   Siebel,


page life cycle of asp.net.

4 Answers  


What is query string with example?

0 Answers  


What are HTTP handlers in ASP.NET?

0 Answers   MindCracker,


Explain how viewstate is being formed?

0 Answers  


Compare and contrast between inline and code behind - which one is best?

2 Answers   Siebel,


what r the Templeats in ASP.net?

5 Answers   Intel, VBV,


Categories