Include Files Can Have Any File Extension
Written by Eric Smith, Northstar Computer Systems LLC
While Microsoft's documentation indicates that include files should be suffixed with ".inc", this is not required. In fact, if you suffix it with .asp, you can perform server-side include directives within an include file. For instance, let's say you had a series of header files that contained different groups of functions. In the main page, you would only need to have one #include directive, as shown here:
<!--#include virtual="/includes/scripts.asp" -->
In the scripts.asp file, you may need to include a number of other files, as shown here:
<%
Option Explicit
%>
<!--#include virtual="/includes/dbcode.asp" -->
<!--#include virtual="/includes/fileops.asp" -->
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 7/1/1999
|