...

View Full Version : urgent help <%@ LANGUAGE=VBScript



esthera
02-08-2005, 07:36 AM
I tried adding <%@ LANGUAGE=VBScript CODEPAGE=1255 %>
to the very top of my header file. (first file included on each page)

I am getting an error:

Active Server Pages error 'ASP 0141'

Page Command Repeated

/headerheb.asp, line 1

The @ command can only be used once within the Active Server Page.


I am only declaring it once.

What could I be doing wrong????

miranda
02-08-2005, 07:41 AM
If you are positvie that there are no other @ directives on the page then the error could also be looking at any included files. If you have an include file with the @ directive in an include file, then that could be your culprit.

esthera
02-08-2005, 07:43 AM
I don't.

There is no @ in any other file.

This is very strange.

any idea of what else could be causing this?

tboss132
02-08-2005, 07:47 AM
Could you post your code? so we can try it in our own Dreamweaver? Alternatively if you have another machine with dreamweaver, copy out all the code and paste it into a new document and see what happens. Also you can copy out the code (or retype) into notepad and save as .asp , Run it and see what happens.
This used to solve some of my vb6 problems some time ago.

esthera
02-08-2005, 08:06 AM
okay attached is a zip of the files

I need the codepage for hebrew.

Thanks for your help

miranda
02-08-2005, 08:12 AM
try taking it out of headerheb.asp and put it on defaultheb.asp. Put it at the very top of the page with your include files below it. then try it

esthera
02-08-2005, 08:16 AM
very strange

that worked but <%@ LANGUAGE=VBScript CODEPAGE=1255 %> is supposed to fix the problem with hebrew coming up as ???? (the hebrew that is pulled from the access db)

It is coming up as ??? What can I do to fix this?

miranda
02-08-2005, 08:39 AM
I just looked and saw where you included headerheb.asp in common.asp which was also included in default.asp that is why it was coming up with multiple @ directives. Have you tried including the metatag for page language in the default page? I see you have it in headerheb what about taking these tags out of headerheb and putting them in the default page. Like so



<%@ LANGUAGE=VBScript CODEPAGE=1255 %>

<html>
<head>
<title>Jerusalem Consulting Group</title>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<link href="http://www.jerusalemconsult.com/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="headerheb.asp"-->
<!--#include file="common.asp"-->
<!--#include file="openconn.asp"-->

///rest of defaultheb.asp......



this way you can try the metatag directly in the default page.

ghell
02-08-2005, 12:33 PM
Could you post your code? so we can try it in our own Dreamweaver? Alternatively if you have another machine with dreamweaver, copy out all the code and paste it into a new document and see what happens. Also you can copy out the code (or retype) into notepad and save as .asp , Run it and see what happens.
This used to solve some of my vb6 problems some time ago.

not everyone uses dreamweaver you know :thumbsup: .. my visual studio wont install anymore (on disk 5, which u need before u start installing :( ) so im using a cool little free editor called Crimson Editor.. i never was too keen on dreamweaver:p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum