M
Mr. Analogy
Hi,
I'm trying to modularize some of my .asp scripts. So, I'd like to replace
recurring vbscript in my .asp pages with server side includes.
However, I can't get them to work. I created a simple test page (see below)
and it doesn't work. The ASP page containing the #include doesn't show any
text from teh include. However, when I view the include page (include.asp)
directly, I do see the response.write text it should be displaying.
Any suggestions? I'm baffled.
I have two files in the same directory
(http://www.BungalowSoftware.com/testdirectory/)
-include.asp
-test2.asp
include.asp
<%
Response.Write "Hello World"
%>
test2.asp
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
start test... <p> <% response.write "generated from asp on this page " %>
<p> end test</p>
<!-- #include file="include.asp" -->
</body>
</html>
I'm trying to modularize some of my .asp scripts. So, I'd like to replace
recurring vbscript in my .asp pages with server side includes.
However, I can't get them to work. I created a simple test page (see below)
and it doesn't work. The ASP page containing the #include doesn't show any
text from teh include. However, when I view the include page (include.asp)
directly, I do see the response.write text it should be displaying.
Any suggestions? I'm baffled.
I have two files in the same directory
(http://www.BungalowSoftware.com/testdirectory/)
-include.asp
-test2.asp
include.asp
<%
Response.Write "Hello World"
%>
test2.asp
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
start test... <p> <% response.write "generated from asp on this page " %>
<p> end test</p>
<!-- #include file="include.asp" -->
</body>
</html>