Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#include statement errors...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've been getting errors on my #include statement line and I can't resolve the problem. The line is the following:
<!--#include virtual=&quot;/adovbs.inc&quot;-->

I know adovbs.inc is there (and page works if I just cut and paste what I need from adovbs.inc) so I'm wondering if there's some issues of this syntax with NT or ? This is my first ASP page so maybe even the syntax is off?
Thanks
 
Does your adovbs.inc file reside in the The difference between including a file using 'VIRTUAL' and file is how it locates the file in question. If you are using virtual, it will start looking in and you need to submit an absolute path, if you on the other hand use 'FILE' you can use a relative path.
Note however that files with the suffix .inc aren't very secure, you should rather name it .asp - this has to do with what clients are allowed to see...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top