MasterType directive is broke?

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

I have the following directive in my master page (the actual file name is
Layout.master):
<%@ MasterType VirtualPath="MasterPage.master" %>
When I run the website, I get this error: "Parser Error Message: The file
'/EternityRecords/MasterPage.master' does not exist."
When i use Layout.master (the filename itself) as the virtual path, it tells
me that circular references aren't allowed. If neither one of these work,
then how does it? I can't find it in any help anywhere...
 
the mastertype directive is for pages hosting the master page control,
not the master page control itself (it knows its type). this directive
generates a property for the page class like:

MasterType Master
{
get {return (MasterType) base.Master;}
}

-- bruce (sqlwork.com)
 
Back
Top