|
| |
|
|
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
_____________________________
|
|
|
|
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!
|
|
|
|
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
_____________________________
|
|
|
|
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!
|
|
|
|
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!
|
|
|
|
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.
|
|
|
|
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!
|
|
|
|
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.
|
|
|
|
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!
|
|
|
|
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.
|
|
|
|
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!
|
|
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
|
|
|