There
is only one directive. Here is how it is setup.
Default.aspx has:
<%@ Page Language="C#" Debug="true" %>
<%@ Import
Namespace="System.IO"
%>
<%@ Import
Namespace="System.Diagnostics"
%>
Declared at the top.
Now for the include line:
<!-- #include
virtual="includes/header.aspx" -->
header.aspx has NOTHING at the top. This is because it has already been
declared in Default.aspx..
|The problem is I get all these errors even though it is an include file and C#
is already declared in Default.aspx.. Now if I put <%@ Page Language="C#" Debug="true" %> at the top of header.aspx all the errors go away but
then it says I cannot declare the directive more than one.
Is there a way to fix this? This has to be a VS2005 bug among thousands
of other bugs.
Thanks.