The #include Directive

Article No. 74
Created: 01:40 AM 04.16.04
Author: Support
Original URL: http://myonlinehostingsupport.com/question.php?qstId=74


It is possible to insert the content of another file into an ASP file before the server executes it, with the #include directive. The #include directive is used to create functions, headers, footers or elements that will be reused on multiple pages.

The "virtual" keyword allows you to include files from another virtual directory under the same web server.

Code example:

<!--#include virtual ="/header.inc"-->

Back to original article