Print Page | Close Window

response.write error

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=851
Printed Date: 28 March 2026 at 9:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: response.write error
Posted By: Zeffy
Subject: response.write error
Date Posted: 09 March 2003 at 12:20am

Response.Write("<td><img src="http://www.team-cobalt.com/images/headnews.jpg">http://www.team-cobalt.com/images/headnews.jpg"><br>")

what is wrong with this script.. in IE 6 it tells me theres something wrong with that line.. am i not allowed to use pictures there??




Replies:
Posted By: MorningZ
Date Posted: 09 March 2003 at 12:58am
You have to "escape" the quote in the img tag, like:

Response.Write("<td><img src=""http://www.team-cobalt.com/images/headnews.jpg""><br>")

As for the lack of a good error.. turn off "friendly errors".... http://www.morningz.com/sections/utils/showPage.aspx?PageID=32 - instructions here

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Zeffy
Date Posted: 09 March 2003 at 9:08am
thanks.. already had 500 error off


Posted By: Zeffy
Date Posted: 09 March 2003 at 9:17am

asp is a real pain in the butt...

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/news/viewgb.asp, line 43

Response.Write("<table border="1" width="100%" bgcolor="skyblue" bordercolor=cyan cellpadding="0" cellspacing="1">")
-------------------------------^


Posted By: Zeffy
Date Posted: 09 March 2003 at 10:01am
nvm i figured it out


Posted By: Zeffy
Date Posted: 09 March 2003 at 10:29am
 

Microsoft VBScript compilation error '800a03ea'

Syntax error

/news/viewgb.asp, line 65

Response.Write("<td><font face verdana color=red size=1>""Posted By " & "<font face verdana color=black size=1><b>" 
& oRS("fr").Value & "</b></font>" & " <font face=verdana size=1 color=red>" & oRS("ti").Value</font></td>")
whats wrong here??


Posted By: MorningZ
Date Posted: 09 March 2003 at 11:29am
do you have any concept of what a "string" is?

at the end, you have:
>" & oRS("ti").Value</font></td>")

you are trying get a value from the database, oRS("ti"), and then just thinking you can add the font and cell tag to it.. which are not variables

>" & oRS("ti").Value & "</font></td>")

if you can't figure this stuff out, you are in deep deep trouble doing ASP, because this is like super entry level stuff......


-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Zeffy
Date Posted: 09 March 2003 at 11:51am
yea i always forget the & ... im so used to html... im just a beginner



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net