Why is ASP include function not working for subfolders?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Apogee Rockets
    New Member
    • Jan 2011
    • 2

    Why is ASP include function not working for subfolders?

    While most of our website is located in the first level, we do have a couple of sub directories for files. One is the "includes" directory which hosts our sidebar and header information that is on every page.

    We also have two directories, one for educational pages and the other for our video tutorials. I am having some issues with getting these pages (education & tutorial) to correctly refer to the files in the "include" folder. I am using the virtual command, which refers from the top directory, right?

    Page in top directory:
    Apogee Rockets : Advanced Construction Videos - Model Rocket Kits Rocket Motors Launch Accessories Rocket Software Rocket Books & Videos Building Supplies Electronics & Payloads Wearables Gift Certificate Rocket Novelties and Gifts Garage Sale Ejection Systems Display Stands Customization ARC Supplies Advertising Rocket Building Supplies, T.A.R.C. Supplies. S.T.E.M. materials, propellant, rocket fuel, space exploration merit badge


    Page in "Rocketry_Video s" directory:
    Apogee Rockets : Advanced Construction Videos - Model Rocket Kits Rocket Motors Launch Accessories Rocket Software Rocket Books & Videos Building Supplies Electronics & Payloads Wearables Gift Certificate Rocket Novelties and Gifts Garage Sale Ejection Systems Display Stands Customization ARC Supplies Advertising Rocket Building Supplies, T.A.R.C. Supplies. S.T.E.M. materials, propellant, rocket fuel, space exploration merit badge


    As you can see, the menu is weird and not rendering correctly. I also have issues with the video testimonials at the bottom as well. I had to put the video code in each sub-directory as it would cause an error if i tried to refer to it in the "includes" directory from the "Rocketry_Video s directory. Amazingly, I have not had issues with the sidebar (yet).

    "Include" code snippets below.

    Header has an "include" for the menu itself:
    Code:
    <td><!--#include file="header_menu.asp" --></td>
    Page includes header:
    Code:
    <tr>
        <td colspan="2"><!--#include virtual="../includes/header.asp" --></td>
      </tr>
    Example file structure:
    Top Directory/
    >Rocketry_Video _tips.asp
    >includes/
    >>header.asp
    >>header_menu.a sp
    >Rocketry_Video s/
    >>Rocketry_Vide o_01.asp

    any tips help. if i need to post more code, let me know.
  • Apogee Rockets
    New Member
    • Jan 2011
    • 2

    #2
    ugh. turns out it wasn't an ASP issue at all, but javascript.

    Comment

    Working...