online tutorials, website development, web application development

   

ASP Tutorials

Syntax for Including Files
To include a file in an ASP page, place the #include directive inside comment tags:
<!--#include virtual="somefilename"--> or <!--#include file ="somefilename"-->

The Virtual Keyword
Use the virtual keyword to indicate a path beginning with a virtual directory. If a file named "header.inc" resides in a virtual directory named /html, the following line would insert the contents of "header.inc"
<!-- #include virtual ="/html/header.inc" -->

The File Keyword
Use the file keyword to indicate a relative path. A relative path begins with the directory that contains the including file. If you have a file in the html directory, and the file "header.inc" resides in html\headers, the following line would insert "header.inc" in your file
<!-- #include file ="headers\header.inc" -->