navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Includes, CSS and ASP

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Includes, CSS and ASP
Page: [1]
 
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
Includes, CSS and ASP - 6/1/2004 14:18:33   
I have a site where I have a box for announcements appearing on all my pages. The majority of the pages are .asp. All of the pages are pulling all of their formatting and layout information from one style sheet. When I manually enter the information for the announcements onto each page, it displays perfectly. When I try to put the same information in using an include file, the announcement box goes blank and won't pull the information. Does anyone have any ideas why this is?

See the problem here

< Message edited by slbergh -- 6/1/2004 13:20:08 >


_____________________________

Digital data lasts forever...or 5 years, whichever comes first!
Giomanach

 

Posts: 6113
Joined: 11/19/2003
From: England
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 14:47:15   
Can I see the coding for your Includes?

Dan

_____________________________




(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 14:50:52   
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
</head>

<body>

<p id="title">50<sup>th</font></sup> Anniversary CSHEMA 
    Conference - Chicago, IL -  July 4-7, 2004<br>
    <br>
    22<sup>nd</font></sup> Annual College and University 
    Hazardous Waste Conference - Roanoke, VA - August 8-10, 2004</div></p>

</body>

</html>


_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to Giomanach)
Giomanach

 

Posts: 6113
Joined: 11/19/2003
From: England
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 14:55:34   
Remove the coding from <html> to <body> and the last </body> and </html>

Should work then

Dan

_____________________________




(in reply to slbergh)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 15:00:41   
It looks like you're using Front Page component includes... they dont work on ASP pages... you'll have to change to SSI (Server Side Includes)

It works the same way, but as G mentioned above, you'll have to remove everything but EXACTLY what should appear in the include (ditch the <html>, <head> and <body>)

Then use this format for the include command:

<!--#include file="filename.txt" -->

The include can be a .txt, .inc, .html, .htm, etc... doesn't matter.

The server will parse the include before sending the data to your browser... like a copy > paste at the server level... you'll never be able to tell there was an include there.

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to Giomanach)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 15:01:29   
For some reason it didn't.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to Giomanach)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 15:27:47   
Its not an asp page - it wont do SSI

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to slbergh)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 15:59:15   
quote:

Its not an asp page - it wont do SSI
... not necessarily... that depends on your host and server...

Sorry for misunderstanding the posts above... for some reason I thought you were on an ASP page. If you're not using ASP and you want to use SSI, then you have to use a .shtm or .shtml extension.

Actually, check with your host... many times you can ask them to set up your account to parse for includes on .htm and .html pages. It depends on them whether they'll do it or not.

If you're on a Unix or Linux server, you can tell it which page extensions to parse... Google for ".htaccess" and you'll probably find all you need to set that up.

Now, back to the original problem... you can't get FP component includes to work on an .htm page?

Try changing announce.txt to a .htm file... I don't think FP includes will work with a .txt file.

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to Spooky)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:05:36   
It doesn't seem to matter what I try, I can't get announce.htm to display on my page, regardless of whether it's an htm or asp page. The odd part is, the include that I'm using for my menu displays just fine! And the include shows up in Preview.

The server hosting it is an IIS box, without FPSEs installed (our IT guys have locked down the box because of security concerns).

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to bobby)
BeTheBall

 

Posts: 6362
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:09:16   
Bobby is correct. It appears your include file is announce.txt. The FP include component will not display the include unless you change it to announce.htm. This is true whether you the page on which you are displaying the include is .asp or .htm. Your menu is menu2.htm, which is why it shows just fine.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:42:49   
Hmm, on this end, it's been changed back to an htm...and it still doesn't display.

<div id="announce">
   <p id="title"> 
	<!--webbot bot="Include" U-Include="announce.htm" TAG="BODY" --></p></div>
  <div id="sidebar-a">
    <!--webbot bot="Include" U-Include="menu2.htm" TAG="BODY" --></div>
  <div id="content">


_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to BeTheBall)
BeTheBall

 

Posts: 6362
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:52:09   
Contrary to what was said earlier in the thread, I think you need to keep the <html> and <body> tags in the document. For example, I pasted the code just above into a page and tried to include it, but nothing appeared. I saved your first piece of code (shown below) as include.htm and it displayed as it should.

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
</head>

<body>

<p id="title">50<sup>th</font></sup> Anniversary CSHEMA 
    Conference - Chicago, IL -  July 4-7, 2004<br>
    <br>
    22<sup>nd</font></sup> Annual College and University 
    Hazardous Waste Conference - Roanoke, VA - August 8-10, 2004</div></p>

</body>

</html>


_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:57:51   
It did display this time, but now, it's completely thrown off the layout! :)

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to BeTheBall)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 16:59:06   
Never mind...I had an extra div in there. It appears everything is working (and looking) just as it should.

Thanks for your help, everyone!!

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to slbergh)
BeTheBall

 

Posts: 6362
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 17:09:41   
Beautiful! Love the logo.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Includes, CSS and ASP - 6/1/2004 17:12:50   
Thanks!

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to BeTheBall)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Includes, CSS and ASP
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts