On Oct 15, 1:59*pm, "Andy B" <a_bo...@sbcglobal.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="index.aspx.vb" Inherits="WebRoot.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="LdapAuthentication.vb" MasterPageFile="~/
TestMaster.master" AutoEventWireup="false" CodeFile="Login2.aspx.vb"
Inherits="Login2" title="FastTrack - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>
Here is the compiled directive.
<%@ page language="VB" src="LdapAuthentication.vb" masterpagefile="~/
TestMaster.master" autoeventwireup="false" inherits="Login2,
App_Web_50e5-xmr" title="FastTrack - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>
This page is unique in that It has a aspx.vb page and also refrences
another vb file named LdapAuthentication.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.master"
AutoEventWireup="false" CodeFile="Announce.aspx.vb"
Inherits="Announce" title="FastTrack - Announce" %>
<%@ Import Namespace="System.Security.Principal" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>
As you can see there is no "src" part in this directive.
Compiled
<%@ page language="VB" masterpagefile="~/TestMaster.master"
autoeventwireup="false" inherits="Announce, App_Web_50e5-xmr"
title="FastTrack - Announce" %>
<%@ Import Namespace="System.Security.Principal" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>
Is it normal for the compiled page to remove the "CodeFile" part and
change the "Inherits" tag?
Ty