Results 1 to 2 of 2

Thread: includes are making me batty

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    89
    Hi all i am using visual interdev to develop my project. Lets say my website name will be
    http://www.ohyeah.com. Now my virtual name that i set up on my test project is yeah. Now i want to include an includes file that will be located in folder includes. So i typed
    <!--#include virtual="/includes/file.asp"-->

    But when i launch it asp doesnt see the includes file. Yet if i write it like this
    <!--#include virtual="yeah/includes/log.asp"-->
    it sees it. But the problem is i cant write it one way on my test server because then i would have
    to append every single file in my project to get it to work on the production server. which would be a huge pain in the butt. Anyone have any suggestions?
    Regards,

    Scott

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    try this:

    <!--#include file="includes/file.asp"-->

    assuming you have your ASP page in a folder, and there is a folder named INCLUDES in that same folder, with FILE.ASP within the INCLUDES folder

    that should work....


    Tom


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width