MS VBScript Compilation error 800a0401

M

Matthew Louden

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

Manohar Kamath [MVP]

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

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

Ray at

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top