Click to See Complete Forum and Search --> : include navbar


mlacinik
July 4th, 2001, 07:00 AM
Hi to all,

i`m sure someone could help; here`s the problem:

I would like to include data(htlm or javascript) in my asp from an external file (.txt or what ever).
This file includes the navigation.
I would like to include the data because changes in this data will take place in every asp.

THX Mario

Joe Keller
July 10th, 2001, 11:41 AM
you could create the nav bar in your HTML... Save it as a .inc file
and then put a SSI (server side include) on each page that will be using the nav bar.
The ssi looks like this

!--#include file = "menubar.inc"-->

You will also make sure that you have the following code at the beginning of each page

%@ Language=VBScript %>

Then just change the html in the .inc file and the update will be made throughout your website anywhere the reference to the .inc file is made.

Good Luck
Joe

P.S. I couldnt get the text formatting to work right.. so I left off the < on the code examples.

mlacinik
July 11th, 2001, 09:19 AM
Thanks, that was exactly what i was looking for.

:) Mario