Free Web Hosting, Free Hosting, Free ASP Hosting - 1ASPHost.com
    

    Domain Registration
    Free Hosting
    Web Hosting
    E-mail Accounts
    FAQs
    Contact Us

    Learn ASP
    Databases
    Articles
    Terms of Service
    Home

One of the most helpful parts of the Internet Information Server (IIS)  is Server Side Includes (SSI) and DomainDLX.com lets you use them.  There are two types of SSIs.   One includes a file in a directory relative to the web page asking for the include and the other includes a file starting from the server's root directory in the server's virtual file system (the IIS application's file system).  Because these files are included before the ASP script is ran, you may not have any ASP tags within the include tag.

To include a file from the same directory (folder for people who grew up knowing only Windows 95 or have never used  DOS or UNIX) just type in this:

<!--#include file="file.asp"-->

or

<!--#include file="username\file.asp"-->

or

<!--#include file="..\file.asp"-->

To include a file from anywhere in the web site (only in the web site's file system) use this:

<!--#include virtual="/username/file.asp"-->

By: Matthew Holder