/    Sign up×
Community /Pin to ProfileBookmark

How to include files in CSS layout

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 regards

[upl-file uuid=c3827f3b-f00b-4888-991d-70c79e9d89ea size=3kB]DreamPage2.zip[/upl-file]

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@JDM71488Jul 16.2005 — my fault, i misunderstood the question... i still dont get it... ?
Copy linkTweet thisAlerts:
@bathurst_guyJul 16.2005 — first question, is the file saved as an asp page? ?

and i have read your question a few times but i dont get it lol
Copy linkTweet thisAlerts:
@FoundasauthorJul 17.2005 — ok, 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 advance
Copy linkTweet thisAlerts:
@proutonJul 17.2005 — Inorder to get the individual pages to appear sandwished between the heading and footing, the data has to be [i]located[/i] 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 [i]can[/i] 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 [i]are[/i] comments (the exclamation point and dual dashes).
Copy linkTweet thisAlerts:
@FoundasauthorJul 17.2005 — 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?
Copy linkTweet thisAlerts:
@FoundasauthorJul 17.2005 — 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
×

Success!

Help @Foundas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...