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