By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

MS VBScript Compilation error 800a0401

P: n/a
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??
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Response.Write "<select name=""id"">"

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

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"Matthew Louden" <jr********@hotmail.com> wrote in message
news:uf**************@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??

Jul 19 '05 #2

P: n/a
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" <jr********@hotmail.com> wrote in message
news:uf**************@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??

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.