Things You'll Need:
- ASP compatible web server
-
Step 1
Name your main web page with the .asp extension so the web server will process the include file and display the page correctly in your web browser.
-
Step 2
Header include with another included imbedded into the codeUse a file that is in another directory on the web server. Create a folder on your web server and call it "includes". You can store all your #include files for your site in this folder and find them much quicker than if they were spread around. Enter the following code in the location you would like it to display on your web page.
<!-- #include virtual ="includes/header.htm" --> -
Step 3
Use a file that is in the same directory on the web server as the page with the #include. This option is best when you only want to use the #include file in just a few places in the website rather than across the entire site. Make sure the file is in the same directory as the page you are adding the #include to.
-
Step 4
Add the #include code below in the location you would like it to display on your web page. <!-- #include file ="navigationmenu.htm" -->











