brothercake
10-01-2004, 10:42 PM
I'm generating a stylesheet in JScript, so it's included like this:
<link rel="stylesheet" type="text/css" media="screen,projection" href="style.asp" />
Then as far as I've got with the stylesheet generation is this:
<%@ language="javascript"%>
<%
Response.ContentType = "text/css";
Response.Write("pre { background:#ddd; }");
%>
And that works fine, but now I want to import arrays from an external configuration file and use values from them in the output rules.
How do I do that? The only way I can find is with a <script runat="server"> but then the variables aren't available to the included document.
Basically what I want is an equivalant of PHP's include() statement.
<link rel="stylesheet" type="text/css" media="screen,projection" href="style.asp" />
Then as far as I've got with the stylesheet generation is this:
<%@ language="javascript"%>
<%
Response.ContentType = "text/css";
Response.Write("pre { background:#ddd; }");
%>
And that works fine, but now I want to import arrays from an external configuration file and use values from them in the output rules.
How do I do that? The only way I can find is with a <script runat="server"> but then the variables aren't available to the included document.
Basically what I want is an equivalant of PHP's include() statement.