Anyone know anything about .asp - i'm in a pickle

Soldato
Joined
15 Feb 2003
Posts
10,168
Location
Europe
Had a bit of a mess at work.

Looking at the following page, http://www.classicshowjumps.com/precategories9.asp


can you see the links listed under the main menu section - starting New... and View...

Where can I find the code for that section? i have opened the page in an editor and done a search through the code but cannot for life of me find the code i'm looking for.

i need it so I can add it to the dreamweaver template to apply to every page.

thanks
 
I jumped onto a pc and tried notepad++ but it didn't find anything.

I know that piece of code must be somewhere because I can see the results of it, on the page - which I also have locally.

What would be the command for grep to serach a directory on a mapped network drive?
 
As your page now says:
Code:
Active Server Pages error 'ASP 0126'

Include file not found

/precategories9.asp, line 76

The include file '../vsadmin/db_conn_open.asp' was not found.
It's not much help!
But you might be looking for the links in the wrong place. They could/probably are in the database somewhere. If you can get the page runing again, we migh be able to tell you where you can look.
Failing that, posting the ASP code here is probably your best bet. HOWEVER take out any secure stuff you don't want out in the world such as connection strings.

[edit]
if it's anything like page 8 then I would look for bit after the line
<!-- #EndEditable -->
and see what the code says there.
[/edit]
Simon
 
Last edited:
Here is the code of a page that contains the two links that I want on the left:

Code:
<!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"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
<!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Classic Showjumps - Jump Cups &amp; Accessories</title>
<style type="text/css">
<!--
.style5 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style6 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>
<!-- #EndEditable --><style type="text/css">
<!--
.style5 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style6 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>

<link rel="stylesheet" type="text/css" href="../style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<script type="text/javascript" language="JavaScript1.2" src="../popouttext.js">
</script>
<!-- #BeginEditable "head" --><!-- #EndEditable -->
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="3" bgcolor="#A9DAFB">&nbsp; </td> 
</tr>
<tr>
  <td bgcolor="#A9DAFB">&nbsp; </td>

<td width="900">

  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"><img src="../images/top.jpg" alt="top" width="979" height="165" /></td>
    </tr>
  </table>
  <table width="979" border="0" cellpadding="0" cellspacing="0">

  <tr> 
    <td background="../images/leftside.jpg" bgcolor="#669AFF" class="lefttopbg">&nbsp;</td>
    <td width="100%" bgcolor="#E3EFFB" > </td>
   <td background="../images/rightside.jpg" >&nbsp;</td>
  </tr>
  
  <tr> 
    <td align="center" background="../images/leftside.jpg" class="smaller"><b>PRO COMPETITION RANGE</b>&nbsp;&nbsp;</td>
    <td width="100%" bgcolor="#E3EFFB">&nbsp;</td>
    <td background="../images/rightside.jpg"></td>
  </tr>
  <tr>
   
    <td valign="top" background="../images/leftside.jpg" bgcolor="#F0F0F0"> 
         <p align="center">&nbsp;</p>
         <table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><img src="../images/clearpixel.gif" width="10" height="1" /></td>
          <td align="center" valign="top"> 
            <!--#include file="../vsadmin/db_conn_open.asp"-->
            <!--#include file="../vsadmin/inc/languagefile.asp"-->
            <!--#include file="../vsadmin/includes.asp"-->
            <!--#include file="../vsadmin/inc/incfunctions.asp"-->
<script language="JavaScript" type="text/javascript">
mymenu = new POTMenu
// Defines the size of the main menu items, width and height
mymenu.mainmenuitemsize(128,15)
// Defines the size of the sub menu items, width and height
mymenu.submenuitemsize(172,15)
// Defines the position of the sub menus in relation to the parent
mymenu.submenuplacing(0,0)
// Images that make up the border of the main menu. Optional.
mymenu.mainborderimages("images/clearpixel.gif","images/clearpixel.gif","images/greypixel.gif","images/greypixel.gif")
// Corners of the images that make up the main menu border.
mymenu.mainbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
// Left width, right width and height of the top and bottom of the border
mymenu.mainborderdimensions(1,1,1)
// These lines are for the sub menu borders
mymenu.subborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
mymenu.subbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
mymenu.subborderdimensions(1,1,1)
// Main menu cell color
mymenu.mainmenucolor("#B9D1FF")
// Sub menu cell color
mymenu.submenucolor("#F0F0F0")
// Centers text for Netscape 4.7
mymenu.netscapeadjust(3,3)
// The image that is show between the main menu items
mymenu.definemainspacer("images/greypixel.gif",1)
// The image that is show between the sub menu items
mymenu.definesubspacer("images/greypixel.gif",1)
// Do you want to "hide" (SELECT menus, OBJECT tags) when in the menu
mymenu.hideobjects(true,false)
// This line is required here
mymenu.startMenu()
// Define the main menu.
mymenu.addMenu("home"," HOME", "default.asp")
mymenu.addMenu("about"," ABOUT US", "about.asp")

/* <%
	' Please note, the following line of code is used to automatically create the links for the product sections
	' If you do not want to use this feature, please delete this line of code in your Main.dwt template
	' along with the corresponding section below.
%> */
mymenu.addMenu("products"," PRODUCTS", "categories.asp")

mymenu.addMenu("catalogue"," CATALOGUES", "catalogue.asp")

mymenu.addMenu("terms"," TERMS & CONDITIONS", "terms.asp")
mymenu.addMenu("contact"," CONTACT US", "contact.asp")
mymenu.addMenu("search"," SEARCH", "search.asp")
mymenu.addMenu("checkout"," CHECKOUT", "cart.asp")
// This line is required after the main menu is defined.
mymenu.showMainMenu()
// Define the sub menus


// Delete these 7 lines and the corresponding lines above if you 
// don't want an automatically generated popout menu.
<% if false then %> </script> <% end if
menuprestr = " "
menupoststr = "" %>
<!--#include file="../vsadmin/inc/incmenu.asp"-->
<% if false then %> <script language="JavaScript1.2" type="text/javascript"> <% end if %>

mymenu.addSubMenu("contact", "details", " DETAILS", "contact.asp")
mymenu.addSubMenu("contact", "email", " EMAIL", "mailto:[email protected]")



// This line is required after all menu definitions are finished
mymenu.showMenu()
</script>          </td>
        </tr>
      </table>         </td>
    <td width="100%" valign="top" bgcolor="#E3EFFB"> <!-- #BeginEditable "Body" -->
      <table width="100%" height="91" border="0" cellpadding="0" cellspacing="6">
        <tr> 
          <td colspan="3"><div align="center">
            <p align="center" class="style6">Jump Cups &amp; Accessories</p>
            <p align="center"><img alt="Timber Showjumps" src="http://www.classicshowjumps.co.uk/prodimages/img-ts-approvedrange.jpg" border="0" /><a href="precategories3.asp"></a><a href="precategories2.asp"></a><a href="precategories1.asp"></a></p>
            <p>This stunning and dynamic range offers you the best Jump Cups and Accessories.</p>
            <p><strong>Contact us</strong> to find out more...</p>
            <p>&nbsp;</p>
            <p align="center"><a href="http://www.classicshowjumps.co.uk/products.asp?cat=37"><img src="images/viewall.gif" alt="View all products" width="170" height="20" border="0" /></a></p>
            <p>&nbsp;</p>           </td>
        </tr>
      </table>
      
    <b>JUMP CUPS &amp; ACCESSORIES</b><!-- #EndEditable --> </td>
    <td valign="top" background="../images/rightside.jpg"><div align="center">
      <!--#include file="../vsadmin/inc/incminicart.asp"-->
    </div></td>
  </tr>
  <tr> 
    <td height="100%" valign="top" background="../images/leftside.jpg" bgcolor="#F0F0F0"><img src="../images/leftside.jpg" width="181" height="30" hspace="0" vspace="0" /></td>
    <td width="100%" height="100%" align="center" valign="top" bgcolor="#E3EFFB"><p><br />
      Prices subject to delivery charges. All prices apply to the UK mainland only. Northern Ireland, Grampian, Highlands and other areas, including Isle of Wight may incur additional charges - please call for a quote. </p>
      <p>Willow Farm, Fenn Lane, Fenny Drayton, Nuneaton, Warwickshire CV13 6BJ<br />
        Telephone 01455 212 100
      </p>
      <p>&nbsp;</p></td>
    <td valign="top" background="../images/rightside.jpg"><img src="../images/rightside.jpg" width="183" height="30" /></td>
  </tr>
</table>
</td>
<td bgcolor="#A9DAFB">&nbsp;  </td>
</tr>
</table>	
</body>
<!-- #EndTemplate --></html>


Here is the code of a page that doesn't have what I want:

Code:
<!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"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
<!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Classic Showjumps - About Us</title>
<style type="text/css">
<!--
.style5 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style6 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style7 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style8 {font-weight: bold}
-->
</style>
<!-- #EndEditable --><style type="text/css">
<!--
.style5 {font-weight: bold}
-->
</style>
<style type="text/css">
<!--
.style6 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>

<link rel="stylesheet" type="text/css" href="../style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<script type="text/javascript" language="JavaScript1.2" src="../popouttext.js">
</script>
<!-- #BeginEditable "head" --><!-- #EndEditable -->
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="3" bgcolor="#A9DAFB">&nbsp; </td> 
</tr>
<tr>
  <td bgcolor="#A9DAFB">&nbsp; </td>

<td width="900">

  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"><img src="../images/top.jpg" alt="top" width="979" height="165" /></td>
    </tr>
  </table>
  <table width="979" border="0" cellpadding="0" cellspacing="0">

  <tr> 
    <td background="../images/leftside.jpg" bgcolor="#669AFF" class="lefttopbg">&nbsp;</td>
    <td width="100%" bgcolor="#E3EFFB" > </td>
   <td background="../images/rightside.jpg" >&nbsp;</td>
  </tr>
  
  <tr> 
    <td align="center" background="../images/leftside.jpg" class="smaller"><b>PRO COMPETITION RANGE</b>&nbsp;&nbsp;</td>
    <td width="100%" bgcolor="#E3EFFB">&nbsp;</td>
    <td background="../images/rightside.jpg"></td>
  </tr>
  <tr>
   
    <td valign="top" background="../images/leftside.jpg" bgcolor="#F0F0F0"> 
         <p align="center">&nbsp;</p>
         <table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><img src="../images/clearpixel.gif" width="10" height="1" /></td>
          <td align="center" valign="top"> 
            <!--#include file="../vsadmin/db_conn_open.asp"-->
            <!--#include file="../vsadmin/inc/languagefile.asp"-->
            <!--#include file="../vsadmin/includes.asp"-->
            <!--#include file="../vsadmin/inc/incfunctions.asp"-->
<script language="JavaScript" type="text/javascript">
mymenu = new POTMenu
// Defines the size of the main menu items, width and height
mymenu.mainmenuitemsize(128,15)
// Defines the size of the sub menu items, width and height
mymenu.submenuitemsize(172,15)
// Defines the position of the sub menus in relation to the parent
mymenu.submenuplacing(0,0)
// Images that make up the border of the main menu. Optional.
mymenu.mainborderimages("images/clearpixel.gif","images/clearpixel.gif","images/greypixel.gif","images/greypixel.gif")
// Corners of the images that make up the main menu border.
mymenu.mainbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
// Left width, right width and height of the top and bottom of the border
mymenu.mainborderdimensions(1,1,1)
// These lines are for the sub menu borders
mymenu.subborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
mymenu.subbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif","images/greypixel.gif")
mymenu.subborderdimensions(1,1,1)
// Main menu cell color
mymenu.mainmenucolor("#B9D1FF")
// Sub menu cell color
mymenu.submenucolor("#F0F0F0")
// Centers text for Netscape 4.7
mymenu.netscapeadjust(3,3)
// The image that is show between the main menu items
mymenu.definemainspacer("images/greypixel.gif",1)
// The image that is show between the sub menu items
mymenu.definesubspacer("images/greypixel.gif",1)
// Do you want to "hide" (SELECT menus, OBJECT tags) when in the menu
mymenu.hideobjects(true,false)
// This line is required here
mymenu.startMenu()
// Define the main menu.
mymenu.addMenu("home"," HOME", "default.asp")
mymenu.addMenu("about"," ABOUT US", "about.asp")

/* <%
	' Please note, the following line of code is used to automatically create the links for the product sections
	' If you do not want to use this feature, please delete this line of code in your Main.dwt template
	' along with the corresponding section below.
%> */
mymenu.addMenu("products"," PRODUCTS", "categories.asp")

mymenu.addMenu("catalogue"," CATALOGUES", "catalogue.asp")

mymenu.addMenu("terms"," TERMS & CONDITIONS", "terms.asp")
mymenu.addMenu("contact"," CONTACT US", "contact.asp")
mymenu.addMenu("search"," SEARCH", "search.asp")
mymenu.addMenu("checkout"," CHECKOUT", "cart.asp")
// This line is required after the main menu is defined.
mymenu.showMainMenu()
// Define the sub menus


// Delete these 7 lines and the corresponding lines above if you 
// don't want an automatically generated popout menu.
<% if false then %> </script> <% end if
menuprestr = " "
menupoststr = "" %>
<!--#include file="../vsadmin/inc/incmenu.asp"-->
<% if false then %> <script language="JavaScript1.2" type="text/javascript"> <% end if %>

mymenu.addSubMenu("contact", "details", " DETAILS", "contact.asp")
mymenu.addSubMenu("contact", "email", " EMAIL", "mailto:[email protected]")



// This line is required after all menu definitions are finished
mymenu.showMenu()
</script>          </td>
        </tr>
      </table>         </td>
    <td width="100%" valign="top" bgcolor="#E3EFFB"> <!-- #BeginEditable "Body" --> 
      <table width="100%" border="0" cellspacing="6" cellpadding="0">
        <tr> 
          <td width="101%" bgcolor="#F0F0F0"><img src="images/clearpixel.gif" width="1" height="1" alt="" /></td>
        </tr>
        <tr> 
          <td valign="top"> 
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="2">
              <tr> 
                <td> <p align="justify"><font color="#0000FF" size="3"><strong>Welcome... to Classic Showjumps </strong></font></p>
                  <p align="justify"><strong>We are a family run business that prides   itself on personal service, customer satisfaction and good quality workmanship.   It is our aim to give you outstanding customer   service.</strong></p>
                  <p align="justify"><strong>To us each and every customer is special and each and every order   is individual in its requirements.</strong></p>
                  <p align="justify"><strong>We aim to provide a One Stop Shop for all your Show Jumping   needs.</strong> We carry a wide range of both timber and our own Pro-Jumps   plastic range (UK manufactured), as well as Arena Equipment and Gymkhana Games. </p>
                  <p align="justify"><strong>We provide a high quality tailored product</strong> and service   at a competitive price and with minimum delay.</p>
                  <p align="justify"><strong>Our timber ranges are constructed from high quality wood</strong> with strong fixings, bolts and screws and are finished in quality gloss paints,   colour stains or wood preservative. With safety in mind, sharp edges and corners   are chamfered wherever possible. </p>
                  <p align="justify"><strong>Our plastic ranges are manufactured from UV stabilised, durable   polymers</strong> that can stand up to the rigours of equestrian use.</p>
                  <p align="justify"><strong>No order is too small or too large.</strong> We can make our   range of timber fences to your own design or specification and can supply any   combination of fences - we would be happy to amend any of the suggested sets at   the back of our brochure to suit you individual requirements. All our staff at   Classic Showjumps are horse riders and competitors themselves and would be happy   to discuss and advise on your requirements with no obligation.</p>
                  <p align="center"><strong>We are members of the British Equestrian Trade Association</strong>.</p>
                  <p>&nbsp;</p>
                        </td>
              </tr>
            </table>          </td>
        </tr>
        <tr> 
          <td bgcolor="#F0F0F0"><img src="images/clearpixel.gif" width="1" height="1" alt="" /></td>
        </tr>
      </table>
      <b>ABOUT 
      US</b><!-- #EndEditable --> </td>
    <td valign="top" background="../images/rightside.jpg"><div align="center">
      <!--#include file="../vsadmin/inc/incminicart.asp"-->
    </div></td>
  </tr>
  <tr> 
    <td height="100%" valign="top" background="../images/leftside.jpg" bgcolor="#F0F0F0"><img src="../images/leftside.jpg" width="181" height="30" hspace="0" vspace="0" /></td>
    <td width="100%" height="100%" align="center" valign="top" bgcolor="#E3EFFB"><p><br />
      Prices subject to delivery charges. All prices apply to the UK mainland only. Northern Ireland, Grampian, Highlands and other areas, including Isle of Wight may incur additional charges - please call for a quote. </p>
      <p>Willow Farm, Fenn Lane, Fenny Drayton, Nuneaton, Warwickshire CV13 6BJ<br />
        Telephone 01455 212 100
      </p>
      <p>&nbsp;</p></td>
    <td valign="top" background="../images/rightside.jpg"><img src="../images/rightside.jpg" width="183" height="30" /></td>
  </tr>
</table>
</td>
<td bgcolor="#A9DAFB">&nbsp;  </td>
</tr>
</table>	
</body>
<!-- #EndTemplate --></html>


Any ideas?
 
The code you're looking for is somewhere in the following:
Code:
<td valign="top" background="../images/rightside.jpg"><div align="center">
      <!--#include file="../vsadmin/inc/incminicart.asp"-->
    </div></td>
  </tr>

<!-- missing something -->

  <tr> 
    <td height="100%" valign="top" background="../images/leftside.jpg" bgcolor="#F0F0F0"><img src="../images/leftside.jpg" width="181" height="30" hspace="0" vspace="0" /></td>
    <td width="100%" height="100%" align="center" valign="top" bgcolor="#E3EFFB"><p><br />
      Prices subject to delivery charges. All prices apply to the UK mainland only. Northern Ireland, Grampian, Highlands and other areas, including Isle of Wight may incur additional charges - please call for a quote. </p>
      <p>Willow Farm, Fenn Lane, Fenny Drayton, Nuneaton, Warwickshire CV13 6BJ<br />
        Telephone 01455 212 100

The trouble is there is no div to contain the content, no include to insert it and no placeholder for it to be added.
Where's the baffled icon?

The only thought is that it might be in the incminicart.asp file but I find that unlikely. Or perhaps the Templates/Main.dwt file.

Simon
 
Last edited:
Back
Top Bottom