• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

<%@ Reference Page="~/POPage.aspx" %>

What's the purpose and function of the abover in the HTML code of a web form? Is it required for inheritance? How can it be omitted?

Thanks.
0
ksfok
Asked:
ksfok
1 Solution
 
Sammy AgeilCommented:
this directive is used to allow the net framework to compile the page or user control and use it in the calling page

from msdn
Indicates that another user control, page source file, or arbitrary file located at some virtual path should be dynamically compiled and linked against the current ASP.NET file (Web page, user control, or master page) in which this directive is declared.

http://msdn2.microsoft.com/en-us/library/w70c655a.aspx

now if you want to omit this you have to write all code in code behind instead of declaring it in aspx file
this way the .net framework will take care of the C# or VB.Net code without needing a reference

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now