Connecting Tech Pros Worldwide Help | Site Map

Help with Error

Newbie
 
Join Date: Oct 2008
Posts: 7
#1: Oct 17 '08
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/trhosdet.asp, line 158

Response.Write("<div id=""Layer16"" style=""position:absolute; left:16px; top:416px; width:132px; height:80px; z-index:0""><a href=""http://www.mapquest.com/maps/map.adp?city=
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
how can I fix? please help thank you so much
iam_clint's Avatar
Forum Leader
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#2: Oct 20 '08

re: Help with Error


I need to see the rest of the string
Expand|Select|Wrap|Line Numbers
  1. Response.Write("<div id=""Layer16"" style=""position:absolute; left:16px; top:416px; width:132px; height:80px; z-index:0""><a href=""http://www.mapquest.com/maps/map.adp?city=
  2.  
this is definitely a unterminated string..
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#3: Oct 23 '08

re: Help with Error


Quote:

Originally Posted by registry

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/trhosdet.asp, line 158

Response.Write("<div id=""Layer16"" style=""position:absolute; left:16px; top:416px; width:132px; height:80px; z-index:0""><a href=""http://www.mapquest.com/maps/map.adp?city=
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
how can I fix? please help thank you so much

I often find that if you have to write that many quote marks, just switch to standard HTML:
Expand|Select|Wrap|Line Numbers
  1. 'asp code here 
  2. %>
  3. <div id="Layer16" style="position:absolute; left:16px; top:416px; width:132px; height:80px; z-index:0"><a href="http://www.mapquest.com/maps/map.adp?city=
  4. <%
  5. 'more asp code here
Let me know if this helps.

Jared
Reply