Dreamweaver MX ASP Tutorials Macromedia Dreamweaver MX

Intro to Server-Side Includes (SSI) in MX

Inserting the Server-Side Include

Inserting the Server-Side Include page into your document is a very simple process.

1. Open the test.asp page if it is not already open.

2. Click on the page where you want to insert the Server-Side Include. In this case it is anywhere on the page.

3. Click Insert > Script Objects > Server-Side Include and select the theMenu.asp page and click the OK button.

The menu should now appear on the page.

If you look in Code View you will see the following:

ASP VBScript
<!--#include file="theMenu.asp" -->

ColdFusion
<cfinclude template="theMenu.cfm">

PHP
<?php require_once('theMenu.php'); ?>

4. Save the test.asp page.

That is all there is to creating and inserting a Server-Side Include into a page.

Next: Notes and Afterthoughts

Overview
Creating the Base Page
Server-Side Include Page
Inserting the Server-Side Include
Notes and Afterthoughts