Another Template Problem

  • Thread starter Thread starter JA
  • Start date Start date
J

JA

This may not be the right place to ask this...but here goes.

This is on a FrontPage 2000 site.

I have a template page. A full page design. I have to split it into a header
and a footer, for some asp pages. To do this, I marked the beginning of the
content area with xxxx. Everything above that, I saved as the header.
Everything below it, I saved as the footer.

I can open the template as an ASP page or as an HTML page, and it's fine. I
can open the header (htm) or the footer (htm), and they are fine. But when I
open one of the ASP pages of my cart program (that calls the header and
footer files), I get this error message:

Active Server Pages error 'ASP 0140'
Page Command Out Of Order
/header.htm, line 1
The @ command must be the first command within the Active Server Page.

The first line on the header is:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>


But that is the same first line on all the other pages that do work. Could
it have something to do with the fact that the cart ASP pages are written in
vbscript? If so, what would I do about it?

Thanks if anyone can help!

Jill
 
When you say the ASP pages of my cart program "call the
header and footer files" what do you mean?

Did you SSI-include them?

Did you use Include Page components?

Somethign else?

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Jim,

It isn't done by FrontPage. That's why I kind of thought I might be in the
wrong place. I think it's a sub in the asp page. It says something like
ShowCartHeader and ShowCartFooter, so I guess it calls something on another
asp page. I know it is an include, but I think it is done as a sub, instead
of an actual include page.

Jill
 
JA said:
Jim,

It isn't done by FrontPage. That's why I kind of thought I might be in the
wrong place. I think it's a sub in the asp page. It says something like
ShowCartHeader and ShowCartFooter, so I guess it calls something on another
asp page. I know it is an include, but I think it is done as a sub, instead
of an actual include page.

Well, I think that fixing this will requires figuring out how it
works.

I suspect the cause of your problem is that you're somehow copying an
*entire* Web page -- <@...> directives, <html> and </html>, <head> and
</head>, and all the rest -- into your <body> section.

You should only be copying true <body> content into your <body>
section. The FrontPage Include Page componment, for example, doesn't
include the whole page you specify; it only includes the content
between the <body> and </body> tags of the inlcuded page.

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Let me see if I can explain. The asp page doesn't have any head and body
tags. It's just the coding. It has a reference to the header and the footer.
Something like

CartHeader
CustDetails
OrderDetails
CartFooter

Those 4 things would "call" (maybe that isn't the right term) those 4 things
into place. The header first, then it would write out the customer
information, then the order details, then the footer would show. So you
would have the complete page.

Does that make sense?

Thanks, Jill
 
Personally, I see the design method you indicated, as poor page design as it
relates to the page header and footer, since the main content page is
depending on the header/footer includes in order to display correctly.

With this page design you are limited to using ASP/SSI includes for insert
the header and footer content and removing all html tags before and
including the <body> tag in the header and after and including the </body>
tag in the footer from any page to be included.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top