473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Template problem

JA
Hi,

I posted this somewhere else, but I don't think it was quite the right
place, so I'll try here. I know a little about asp, but not much.

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 for any help!

Jill
Jul 19 '05 #1
1 2763
"JA" <ja*****@kc.rr.com> wrote in message
news:L4*****************@twister.rdc-kc.rr.com...
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"%>


I haven't used FP in a long time, but I would move that line into the
top of the actual ASP page (remove it from the Header page) and then
have the ASP insert the Header page just below that line. Like this:

<Begin ASP page here>
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<Insert Header Page here>

<The rest of the ASP continues here>

<Insert the footer page here>
<End of the ASP page>

--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: C. Carbonera | last post by:
/* Hi, I have a problem with explicit instantiation of templates in Visual C++ 6.0. I have provided the source below. I have an example of a function template that produces incorrect output in...
6
by: Adam Parkin | last post by:
Hello, all I'm having a problem with friend functions in a templatized Queue class I'm writing using linked lists. The problem is that I can't get the friend function to be able to access private...
7
by: Drew McCormack | last post by:
I have a C++ template class which contains a static variable whose construction registers the class with a map. Something like this: template <typename T> class M { static Registrar<M>...
7
by: Lionel B | last post by:
Greetings. The following code compiles ok and does what I'd expect it to do: ---------- START CODE ---------- // test.cpp
3
by: David Komanek | last post by:
Hi all, I am trying to learn more about how to use g++/Cygwin to produce dll files on WinXP. And I have a problem which at the first look seems to be an obvious dll-export problem, but I don't...
5
by: Amit | last post by:
Greetings all, I am writing some code somehwat similar to the test code I have below. I am having a variety of issues with template specialization. I am not sure if this is related to something...
2
by: Siegfried Weiss | last post by:
Hi guys, i give up finding a solution by reading or by trial & error. Hope, YOU can help me! (Sorry for my rather long posting.) Stroustrup says, that templates could be declared with - type...
3
by: Chris | last post by:
I am having a very strange problem involving virtual functions in template classes. First of all, here is an extremely simplified structure of the two classes I am having problems with. ...
19
by: aaragon | last post by:
Hi everyone. A very simple question. I would like to know what is better in terms of performance. I want to use a simple function to obtain the minimum of two values. One way could be using a...
3
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.