Include not displaying in aspx

M

Marindi

I have an aspx menu page displaying various menu options based on the logged
in user's access level. I want to include an htm file that shows 2 generic
drop-down menus in the aspx page.

When I do it in FP it displays correctly in the preview window, but when I
test it on my localhost or on the server it displays the aspx part fine, but
the htm include doesn't show. Can anyone please assist me?

The code for the include is:
<!--webbot bot="Include" U-Include="../Inserts/QuickMenuToolPages.htm"
TAG="BODY" -->
 
J

Jens Peter Karlsen

The FP include wont work in an ASP(NET) page. Use an ASP include
instead.

Regards Jens Peter Karlsen.
 
R

Ronx

The included page *is* a complete HTML page with all the tags? Any
JavaScript not between <body> and </body> will be omitted from the
inclusion.
 
M

Marindi

Thx for your help Ron! We're not alowed to run asp pages on our new server,
only aspx, that's why I have to get it working in aspx.

Yes the include is a complete htm, well here is the first few lines (the
rest of the code is just more menu items):

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Quick Menu for 'Tools' Pages/Frames</title>
<link rel="stylesheet" type="text/css" href="style2.css">
<link rel="stylesheet" type="text/css" href="CascadeMenuAll.css">
<script language="javascript" src="CascadeMenuAll.js"></script>
</head>
<body>
<table width="135" background="../images/Nedbank_Images/barFiller.jpg">
<tr>
<td class="menuBlur" onmouseover="openlist(this);"
onmouseout="closelist(this);" style="border-color:#FFFFFF; padding-left: 4px;
padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<p align="left"><font style="font-size: 11pt; ">QuickTools</font><font
face="Arial">â–¼</font></p>
<div class="menuBlur" width="100%" style="float: center">
<table class="itemtable" width="100%" style="border-collapse: collapse;
border: 1px solid #29634B; padding-left: 4px; padding-right: 4px;
padding-top: 1px; padding-bottom: 1px" border="0" bordercolor="#000000"
cellspacing="3">
<tr>
<td class="menuBlur" align="center">
<a class="item" target="_top"
href="../CardBizZone/CardOps/COE/SystAccess_IndexFrames.htm">Systems
Access</a>
</td>
</tr> etc.........

I've copied the tags to the links (stylesheets + cascade) and Script (for
cascade) in <head> into all the pages that are displaying the include because
the menu with the include forms part of a bigger frames-based page. Still not
working.

Here is the code for the aspx file calling the include:
<%@ Page Language="vb" AutoEventWireup="true" Codebehind="Main_Menu.aspx.vb"
Inherits="Application_Prepping.Main_Menu"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Main_Menu</title>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<link rel="stylesheet" type="text/css" href="../Inserts/style.css">
<link rel="stylesheet" type="text/css" href="../Inserts/style2.css">
<link rel="stylesheet" type="text/css"
href="../Inserts/CascadeMenuAll.css">
<script language="javascript" src="../Inserts/CascadeMenuAll.js"></script>

<style>
A:link, A:visited {color: #000000; text-decoration: none; font-size: 8pt;}
A:hover {color: #1b4132; font-weight:bold; font-size: 8pt;}
</style>
<script language="JavaScript"><!--
function openFunction(sURL)
{
parent.AppTrackMain.location.href = sURL;
return false;
}
//--></script>
</head>

<body>

<form id="Form1" method="post" runat="server">
<div style="Z-INDEX: 101; LEFT: 3px; WIDTH: 136px; POSITION: absolute; TOP:
0px; HEIGHT: 80px">
<!--webbot bot="Include" U-Include="../Inserts/QuickMenuToolPages.htm"
TAG="BODY" --><p> </p>
<fieldset style="WIDTH: 136px; HEIGHT: 52px">
<legend>Menu</legend>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 3px; BORDER-TOP:
medium none; PADDING-LEFT: 3px; PADDING-BOTTOM: 1px; BORDER-LEFT: medium
none; PADDING-TOP: 1px; BORDER-BOTTOM: medium none">
<asp:table id="Table1" runat="server" Width="120px"></asp:table>
</div>
</fieldset> </div>
</form>

</body>

</html>
 
R

Ronx

The only thing I can see from your snippets is the test page is in a
folder one level down from the root of the website.
If it is in the website root folder then every instance of "../Inserts/
should be "Inserts/
 
M

Marindi

The aspx file is in a folder one level down from root
(wwwroot/AppTrack/main_menu.aspx) and the include file is in another folder
one level down from root (wwwroot/Inserts/QuickMenuToolPages.htm) so they're
both one level down. The style sheets & js files for cascade menu etc is also
in wwwroot/Inserts folder
??
 
R

Ronx

In that case I cannot see any errors. Can you publish the pages (with all
the associated javascript and css files) and provide a link?
 
M

Marindi

Unfortunately our site is internal and access controlled, so can't be seen
from outside the company. Well at least I know that in theory it should work,
so I'll just keep trying and messing around with the little bits... thanks
again for your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top