Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,456
    Thanks
    15
    Thanked 0 Times in 0 Posts

    urgent help <%@ LANGUAGE=VBScript

    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????

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    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.

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,456
    Thanks
    15
    Thanked 0 Times in 0 Posts
    I don't.

    There is no @ in any other file.

    This is very strange.

    any idea of what else could be causing this?

  • #4
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #5
    Senior Coder
    Join Date
    May 2004
    Posts
    1,456
    Thanks
    15
    Thanked 0 Times in 0 Posts
    okay attached is a zip of the files

    I need the codepage for hebrew.

    Thanks for your help
    Attached Files Attached Files

  • #6
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    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

  • #7
    Senior Coder
    Join Date
    May 2004
    Posts
    1,456
    Thanks
    15
    Thanked 0 Times in 0 Posts
    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?

  • #8
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    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

    Code:
    <%@ 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.

  • #9
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    Quote Originally Posted by tboss132
    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 .. 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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •