T
tshad
In my User control, I tried to do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "<!-- #include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
This gives me:
Parser Error Message: Server includes are not allowed in server script
tags.
If I try to do it this way:
In my User control, I tried to do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "<!-- #" & "include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
It gives me nothing
If I do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "!-- #" & "include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
As I would expect, it displays:
"!-- #include file = ..\includes\StaffingHeaders.inc -->
But as soon as I add the "<", I get the error.
This should just be a string, why isn't it?
Tom
***************************************************************************
<Script runat="server">
Public ClientName As String = "<!-- #include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
This gives me:
Parser Error Message: Server includes are not allowed in server script
tags.
If I try to do it this way:
In my User control, I tried to do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "<!-- #" & "include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
It gives me nothing
If I do this:
***************************************************************************
<Script runat="server">
Public ClientName As String = "!-- #" & "include file =
...\includes\StaffingHeaders.inc -->"
</Script>
<%=ClientName%>
****************************************************************************
As I would expect, it displays:
"!-- #include file = ..\includes\StaffingHeaders.inc -->
But as soon as I add the "<", I get the error.
This should just be a string, why isn't it?
Tom