Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Template problem

Reply
Thread Tools

Template problem

 
 
JA
Guest
Posts: n/a
 
      09-14-2003
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


 
Reply With Quote
 
 
 
 
Phillip Windell
Guest
Posts: n/a
 
      09-15-2003
"JA" <> wrote in message
news:L4R8b.6629$...
> 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]

WAND-TV (ABC Affiliate)
www.wandtv.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
r H2 deduce deduce template argument of a template class inheritingfrom a non template base? nguillot C++ 5 03-08-2009 05:56 PM
How to use the template member function of a template in the memberfunction of another template class? Peng Yu C++ 3 10-26-2008 03:51 PM
template template arguments: expected a class template, got `Component<T1, T2, T3> gary.bernstein@gmail.com C++ 1 06-08-2007 07:10 AM
Re: A Newbie Question about template template template tom_usenet C++ 0 07-24-2003 12:06 PM
Re: A Newbie Question about template template template Chris Theis C++ 2 07-24-2003 09:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57