MS VBScript Compilation error 800a0401

Ask a Question related to ASP, Design and Development.

  1. #1

    Default MS VBScript Compilation error 800a0401

    I have no idea what's wrong with the following ASP statement:

    Response.Write "<select name=\"id\">"

    MS VBScript Compilation error 800a0401
    expected end of statement

    However, if I do the following, it will be fine:

    <select name="id">
    <%

    %>
    </select>


    any ideas??


    Matthew Louden Guest

  2. Similar Questions and Discussions

    1. error message: Microsoft JScript compilation error '800a03ec'
      Recieved following error message: Microsoft JScript compilation error '800a03ec' Expected ';' ...
    2. Microsoft VBScript compilation (0x800A0401) error
      Hi, please could anyone help me with a problem I am having with DW. I am doing a tutorial which comes with DW: Building a Master-Detail Page Set...
    3. 800A0401: Expected End of Statement
      I am trying to get this code going but always the following error message: Error Type: Microsoft VBScript compilation (0x800A0401) Expected end...
    4. Server Error in '/' Application - Compilation Error - Temporary ASP.NET Files
      I have a site that works fine on my local box. I then copy it to my production server (Win2003) and when I try to access the site I get: Server...
    5. Microsoft VBScript compilation error
      Hi Gerry, In VBScript, you don't use square brackets for the parameter name. Try: If (Request.Form("reviews") <> "") Then Best regards,...
  3. #2

    Default Re: MS VBScript Compilation error 800a0401

    Response.Write "<select name=""id"">"

    Within VBScript, you escape a " with another " and not \.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "Matthew Louden" <jrefactors@hotmail.com> wrote in message
    news:ufKKNVpjDHA.2512@TK2MSFTNGP09.phx.gbl...
    > I have no idea what's wrong with the following ASP statement:
    >
    > Response.Write "<select name=\"id\">"
    >
    > MS VBScript Compilation error 800a0401
    > expected end of statement
    >
    > However, if I do the following, it will be fine:
    >
    > <select name="id">
    > <%
    >
    > %>
    > </select>
    >
    >
    > any ideas??
    >
    >

    Manohar Kamath [MVP] Guest

  4. #3

    Default Re: MS VBScript Compilation error 800a0401

    The \ character is used to escape characters in jscript, not vbscript. In
    vbscript, you write "" to escape a " character in a string.
    Response.Write "<select name=""id"">"

    Ray at work

    "Matthew Louden" <jrefactors@hotmail.com> wrote in message
    news:ufKKNVpjDHA.2512@TK2MSFTNGP09.phx.gbl...
    > I have no idea what's wrong with the following ASP statement:
    >
    > Response.Write "<select name=\"id\">"
    >
    > MS VBScript Compilation error 800a0401
    > expected end of statement
    >
    > However, if I do the following, it will be fine:
    >
    > <select name="id">
    > <%
    >
    > %>
    > </select>
    >
    >
    > any ideas??
    >
    >

    Ray at Guest

Posting Permissions

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

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139