急!!!请教高手:关于ASP的!

来源:百度知道 编辑:UC知道 时间:2024/06/08 18:22:37
※错误类型※
Microsoft VBScript 编译器错误 (0x800A0409)未结束的字符串常量
E:../Inc/syscode.asp, line 113, column 83
response.Write "<tr><td width=15><img src='../img_main/colordie.gif' border=0></td>
----------------------------------------------------------------------------------^

代码如下:
response.Write "<tr><td width=15><img src='../img_main/colordie.gif' border=0></td>
<td onMouseOver='bgColor=#EAF4F2' onMouseOut='bgColor=#F4FEFC' align=left><a href='articdefault.asp?ArticleID=" & rsNewest("articleid") &"' title='文章标题:" & rsNewest("Title") & vbcrlf &" 作 者:" & rsNewest("Author") & vbcrlf &" 更新时间:" & rsNewest("UpdateTime") & vbcrlf &" 点击次数:" & rsNewest("Hits") & "' target='_blank'>" & gotTopic(rsNewest("title"),Ti

因为你可能按了回车,换行了,所以编译器就不认了
改为:
response.Write "<tr><td width=15><img src='../img_main/colordie.gif' border=0></td><td onMouseOver='bgColor=#EAF4F2' onMouseOut='bgColor=#F4FEFC' align=left><a href='articdefault.asp?ArticleID=" & rsNewest("articleid") &"' title='文章标题:" & rsNewest("Title") & vbcrlf &" 作 者:" & rsNewest("Author") & vbcrlf &" 更新时间:" & rsNewest("UpdateTime") & vbcrlf &" 点击次数:" & rsNewest("Hits") & "' target='_blank'>" & gotTopic(rsNewest("title"),TitleLen) & "</a>[<font color=red>" & rsNewest("hits") & "</font>]</td></tr>"

问题出在单引号上

将上面的单引号全剖删除
另一方法为:将单引号改为两个双引号
response.Write "<tr><td width=15><img src='../img_main/colordie.gif' border=0>
改为resp