On Oct 15, 1:59*pm, "Andy B" <a_bo...@sbcglo bal.netwrote:
Is this a website project or a web application project? I have a web
application project and this is what one of my @page directives looks like:
<%@ Page Title="Eternity Records - Home" Language="vb"
AutoEventWireup ="false" MasterPageFile= "~/Site.Master"
CodeBehind="ind ex.aspx.vb" Inherits="WebRo ot.index" %>
Notice the codebehind and the inherits attributes that were missing from
your directive. The one you gave was a little wierd looking. What versionof
visual studio are you using? If I remember the website version of codebehind
would be codefile.
A web site.
Here is the uncomplied directive
<%@ Page Language="VB" Src="LdapAuthen tication.vb" MasterPageFile= "~/
TestMaster.mast er" AutoEventWireup ="false" CodeFile="Login 2.aspx.vb"
Inherits="Login 2" title="FastTrac k - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>
Here is the compiled directive.
<%@ page language="VB" src="LdapAuthen tication.vb" masterpagefile= "~/
TestMaster.mast er" autoeventwireup ="false" inherits="Login 2,
App_Web_50e5-xmr" title="FastTrac k - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>
This page is unique in that It has a aspx.vb page and also refrences
another vb file named LdapAuthenticat ion.vb that is required for
Authentication with my Active Directory. I'm using form
authentication.
Now here is a regular page in my project.
Uncompiled
<%@ Page Language="VB" MasterPageFile= "~/TestMaster.mast er"
AutoEventWireup ="false" CodeFile="Annou nce.aspx.vb"
Inherits="Annou nce" title="FastTrac k - Announce" %>
<%@ Import Namespace="Syst em.Security.Pri ncipal" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>
As you can see there is no "src" part in this directive.
Compiled
<%@ page language="VB" masterpagefile= "~/TestMaster.mast er"
autoeventwireup ="false" inherits="Annou nce, App_Web_50e5-xmr"
title="FastTrac k - Announce" %>
<%@ Import Namespace="Syst em.Security.Pri ncipal" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>
Is it normal for the compiled page to remove the "CodeFile" part and
change the "Inherits" tag?
Ty