troubleshooting Question

include file problem

Avatar of johnhardy
johnhardyFlag for United Kingdom of Great Britain and Northern Ireland asked on
ASPCSSAdobe Dreamweaver
14 Comments1 Solution319 ViewsLast Modified:
I have a page  in a website
Root/Enquiries/temp1.asp
This has an include file which is located in Root/Navbar.asp ie for a menu
I wish to refer to NavBar.asp from the page Root/Enquiries/temp1.asp so I am using
<!--#include file="../NavBar.asp" -->
The various menus  at root level all use NavBar.asp
The menus within Root/Enquiries refer to <!--#include file="../NavBar.asp" --> but are referring  to  Enquiries/temp1
Can anyone see where I am going wrong on this please.
Thanks John
The code for temp1 in Root/Enquires is
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css" media="screen">
<!--
@import url("../p7tbm/p7tbm_center_08.css");
-->
</style>
<script type="text/javascript" src="../p7tbm/p7tbmenu.js"></script>
</head>
<body onload="P7_initTBM(1,2,1,1,200,3)">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="../Images/Boat_Manufacture.gif" alt="Boat Manufacture and Consulting" width="780" height="50" /></td>
  </tr>
</table></td>
  </tr>
  <tr>
    <td>
      <!--[if lte IE 6]>
<style>#p7TBM div, #p7TBM ul, #p7TBM a {height:1%;}</style>
<![endif]-->
  <!--[if IE 7]>
<style>
#p7TBM div,#p7TBM ul{zoom:100%;}
</style>
<![endif]-->
</div></td>
  </tr>
  <tr>
    <td><!--#include file="../NavBar.asp" --></td>
  </tr>
    <tr>
      <td height="30" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td height="30" valign="top">zzzz</td>
  </tr>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
MELeBlanc

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros