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

Answer Posted / sisir champati

The topmost line in an aspx page should be as follows:

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

The part that says CodeFile="MyFile.aspx.cs" is the one that
links the code behind page to the aspx one.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Destructors CANNOT be implemented in which one of the following?

5640


What are the stored procedure and why they are needed?

681


What is Response object? How is it related to ASP's Response object?

772


How does asp differ from html?

682


What is the common language specification (cls)?

742


Define .asp file?

739


How do in-process and cross-process communication work in the common language runtime?

672


What is an .asp file?

715


What is server control

1698


Define application object?

670


Explain how do you box a primitive data type variable?

666


Explain the post and get method or explain the difference between them?

702


What is asp contentplaceholder?

669


Define application-scope?

684


What purpose is served by the application.lock method?

733