Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Posts
    71

    Unanswered: problems with #include file

    I have a common requirement to strip out header stuff from a set of ASP files.


    <!--#include file="header.asp"-->


    However, as soon as I include the header in the above way, I always get
    Microsoft VBScript runtime (0x800A01A8)
    Object required: ''
    /content.asp, line 27

    The line number shows that it's complaining about a stored procedure call that appears immediately after the included header:-

    rs.open "Exec spAStoredProc", cn

    However, if I copy back the contents of the Header.asp back into the main content.asp it all works again.

    Any suggstions?

    Clive

  2. #2
    Join Date
    Nov 2002
    Posts
    71

    Re: problems with #include file

    Originally posted by crichardson
    I have a common requirement to strip out header stuff from a set of ASP files.


    <!--#include file="header.asp"-->


    However, as soon as I include the header in the above way, I always get
    Microsoft VBScript runtime (0x800A01A8)
    Object required: ''
    /content.asp, line 27

    The line number shows that it's complaining about a stored procedure call that appears immediately after the included header:-

    rs.open "Exec spAStoredProc", cn

    However, if I copy back the contents of the Header.asp back into the main content.asp it all works again.

    Any suggstions?

    Clive

  3. #3
    Join Date
    Nov 2002
    Posts
    71

    Re: problems with #include file

    I'm still interested in getting some advice on this. To add a little more information, it seems that as soon as I use the include file, all rs.open operations fail in both the Header.asp and main asp page as well.

    Clive

  4. #4
    Join Date
    Dec 2003
    Posts
    454
    can you post the code for both connections in include and main files?

Posting Permissions

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