Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > MS VBScript Compilation error 800a0401

Reply
Thread Tools

MS VBScript Compilation error 800a0401

 
 
Matthew Louden
Guest
Posts: n/a
 
      10-09-2003
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??


 
Reply With Quote
 
 
 
 
Manohar Kamath [MVP]
Guest
Posts: n/a
 
      10-09-2003
Response.Write "<select name=""id"">"

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

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com


"Matthew Louden" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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??
>
>



 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-09-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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??
>
>



 
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
Microsoft VBScript compilation error '800a03f6' Expected 'End' rebecca29 ASP General 0 05-05-2012 12:59 AM
Microsoft VBScript compilation error '800a0400' option explicit S N ASP General 0 04-06-2008 09:25 PM
Compilation error with seperate compilation C__chp C++ 4 02-15-2008 03:57 PM
Microsoft VBScript compilation error '800a03f6' Adam Short ASP General 6 04-26-2005 09:52 AM
Microsoft VBScript compilation error '800a03f6' Expected 'End' ?, Line 0 Adam Short ASP General 3 04-21-2005 12:56 PM



Advertisments