In the page directive (@ Page) you can specify several things to change the way the page works when it's compiled.
1. Strait inline code. Plain ASPX file with a server script block in it.
<%@ Page%>
2. Inherited source file class (runtime-compiled). ASPX file derives from a class that is compiled at runtime using a SRC file
<%@ Page Inherits="MyClass" Src="MyClass.aspx.
vb" %>
3. Inherited assembly class (Pre-compiled). ASPX file derives from a class that lives in a pre compiled assembly.
<%@ Page Inherits="MyApplication.MyClass" %>
Note: the CodeBehind attribute of the page directive is not significant to ASP.NET, but to Visual Studio.
-
Peter