Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include file not including 1

Status
Not open for further replies.

Vjer

Technical User
May 7, 2004
11
US
I'm trying to use include files for "static" portion of asp pages on a site. I've read numerous examples on this site and others and thought I had the code right, BUT ... when I try to run the pages on the web server I either get a page with two vertical lines where my header logo should be and nothing where footer should be OR the actual script shows on the page! Code for test page is below. Can someone tell me what I'm missing!

--- main file as homepage.asp ---
<!-- #include file=include/pgtop.asp"
<!-- #include file="header_menu.asp" -->
<br /> and then there's the call to the menu by script below... <br />

<script src="xaramenu.js"></script><script Webstyle4 src="buttons/top.js"></script>
</body></html>

------ pgtop.asp code ----------
<%@ Language=vbscript %>
<% option explicit %>
<html>
<head>
<title>THE AGSBA PAGE TOP</title>
</head>
<body bgcolor="#527F76" text="white">

--------- header_menu.asp --------
<img border="0" src="images/Logo.jpg" width="800" height="134"><br />

<!--webbot CLIENTSIDE
bot="Ws4FpEx" MODULEID="'Default (Project)\top_off.xws'" PREVIEW="<img src='buttons/top.gif?04E903C3' editor='Webstyle4' border='0'>" startspan -->
<script src="xaramenu.js"></script><script Webstyle4 src="buttons/top.js"></script><noscript><img src="buttons/top.gif?04E903C3" editor="Webstyle4" width=800></noscript><!--webbot
bot="Ws4FpEx" endspan i-checksum="50323" -->

--------------------------------------------------------
When the test file is loaded, I thought it would show the page with the logo (logo.jpg) and the menu bar under it, the line of text and another menu bar from the direct reference to the code. However, the only thing on the page is the text line and the second menu bar.

I have verified that the asp files are in the proper folder, BTW.


 
ok, I checked with the host site and, sure 'nuff, they work only with PHP. Boy, do I feel foolish. I've been trying to get up to speed with PHP so now I have a good excuse! Thanks for your replies, especially sheco who first confirmed by sense of dread that asp was not being processed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top