How to include files in CSS layout

liunx

Guest
Hi guys

i am using one of DreamWeaver CSS layouts and after several modifications, i finally got it the way i like it.

i want to use this layout for every page in my website. I have included the header.htm and the .css style but i have two problems.

a. i wish to have this code on the right column:

<%
if session("username")="" then %>
<!--#include file="login.inc"-->
<% else %>
<!--#include file="sidemenu.inc"-->
<% end if %>

but what happens is that the above lines of code are shown as text inside the right column. How can i make it contain the above files?

b. in the "content" DIV, i wish place every .asp file i visit on the website. How can i do this? if i include "header.htm" in my .asp files, then the page is displayed and the contents of every .asp file i visit, is placed at the end of the header file and not inside the content DIV

can you please help me out?


best regardsmy fault, i misunderstood the question... i still dont get it... :(first question, is the file saved as an asp page? :)
and i have read your question a few times but i dont get it lolok, i wish to use the header.htm as the layout of the website. In other words, i want to place inside "content" DIV the contents of every link i visit on the site

for instance, by clicking on the "Coverage Map" link, i want to have the table of coverage.asp be placed in the "content" DIV.

can u help out please?


thanks in advanceInorder to get the individual pages to appear sandwished between the heading and footing, the data has to be located between the heading and footing. Normally, you would make the portion of header.htm up to (and possibly including) the "content" div part of an include file, and the portion after the "content" div part of a second include file, and place include statements before and after you individual page data.

As for why the login/sidemenu includes aren't working, it sounds like the server isn't recognizing that you've included ASP code in the page. Usually this happens when you don't name your pages xxxxxxx.asp, although the server can be configured to treat files ending in any suffix to be parsed by the ASP preprocessor.

Unless you're saying that you get just one or the other line (login or sidemenu) showing up as comments, in which case is probably has more to do with the fact that they are comments (the exclamation point and dual dashes).got the include thing working.

so, there is no easy way to have the pages being displayed inside "content" div?

i mean, most, if not all of the pages contain a table or data. so, i'll have to change all these files to make this work?got it prouton


what i did is :

in the header.htm i have only the actual DIV header and the suckerfish drop down menu

in footer.htm: i have placed the DIV navigation on the right and the DIV footer

and have placed every other page inside DIV "content" tags

it works like a charm


thanks for the tip
 
Back
Top