asp问题,请高手帮忙看看这段代码 急..在线等

<% If rs("photo_x_flag")=1 and rs("photo_d_flag")=1 Then✀大小都有 response.write"<table> <tr> <td><a href=photo/"&rs("photo_d")&" target=_blank><img src=photo/"&rs("photo_x")&" width=100 height=75 border=0 hspace=4 vspace=4 alt=网名:"&rs("username")&"></a></td> </tr> <tr> <td><a href=Display.asp?MemberID="&rs("id")&" target=_blank class=6hui_l>"&htmlout(ChkBadWords(rs("username")))&"</a></td> </tr></table>" ElseIf rs("photo_x_flag")=1 and rs("photo_d_flag")=0 Then✀有小无大 response.write "<table> <tr> <td><a href=photo/"&rs("photo_x")&" target=_blank><img src=photo/"&rs("photo_x")&" width=100 height=75 border=0 hspace=4 vspace=4 alt=网名:"&rs("username")&"></a></td> </tr> <tr> <td><a href=Display.asp?MemberID="&rs("id")&" target=_blank class=6hui_l>"&htmlout(ChkBadWords(rs("username")))&"</a></td> </tr></table>" ElseIf rs("photo_d_flag")=1 and rs("photo_x_flag")=0 Then✀有大无小 response.write "<table> <tr> <td><a href=photo/"&rs("photo_d")&" target=_blank><img src=photo/"&rs("photo_d")&" width=100 height=75 border=0 hspace=4 vspace=4 alt=网名:"&rs("username")&"></a></td> </tr> <tr> <td><a href=Display.asp?MemberID="&rs("id")&" target=_blank class=6hui_l>"&htmlout(ChkBadWords(rs("username")))&"</a></td> </tr></table>" end if %>错误类型:Microsoft VBScript 编译器错误 (0x800A0409)未结束的字符串常量/wr/ceshi/index.asp, line 310, column 24response.write"<table>-----------------------^到底错在哪里啊?怎么修改呵呵,问题我自己决绝了,response.write ""里面不能有断行
2026年09月23日 22:01
有4个网友回答
网友(1):

response.write "" 中的字符串不能换行,ASP的语句和VB一个道理,同一个语句不能换行。
字符串很大的话可以做以下更改:
<%
If rs("photo_x_flag")=1 and rs("photo_d_flag")=1 Then'大小都有
%>








target=_blank> width=100

height=75 border=0 hspace=4 vspace=4 alt=网名:<%=rs("username")%>>
target=_blank class=6hui_l><%=htmlout(ChkBadWords(rs("username")))%>

<%ElseIf rs("photo_d_flag")=1 and rs("photo_x_flag")=0 Then%>







target=_blank> width=100 height=75 border=0 hspace=4 vspace=4 alt=网名:<%=rs("username")%>>
target=_blank class=6hui_l><%=htmlout(ChkBadWords(rs("username")))%>

<%ElseIf rs("photo_d_flag")=1 and rs("photo_x_flag")=0 Then'有大无小 %>







target=_blank> width=100 height=75 border=0 hspace=4 vspace=4 alt=网名:<%=rs("username")%>>
target=_blank class=6hui_l><%=htmlout(ChkBadWords(rs("username")))%>

<%
end if
%>

网友(2):

代码都不清楚怎么写的

把我的复制去试试
<%
If rs("photo_x_flag")=1 and rs("photo_d_flag")=1 Then'大小都有
response.write"

网名:"&rs("username")&"
"&htmlout(ChkBadWords(rs("username")))&"
"

ElseIf rs("photo_x_flag")=1 and rs("photo_d_flag")=0 Then'有小无大
response.write "
网名:"&rs("username")&"
"&htmlout(ChkBadWords(rs("username")))&"
"
ElseIf rs("photo_d_flag")=1 and rs("photo_x_flag")=0 Then'有大无小
response.write "
网名:"&rs("username")&"
"&htmlout(ChkBadWords(rs("username")))&"
"
end if
%>

你用我的代码提示是哪里的错误啊?

网友(3):

这个文件/wr/ceshi/index.asp,的310行的第24个字符,少了个双引号.

网友(4):

错误信息提示:
第310行
response.write"

--------这行最后少了个双引号。加上就好了