从数据库提取的字符串怎么会自动换行?
<%do While Not rs1.EOF%>
' <DIVI ID= " <%=rs1( "ts_id ")%> " NAME= " <%=trim(rs1( "ts_name "))%> "> '+
' </DIVI> '+
<%rs1.movenext
loop%>
输出结果为:
' <DIVI ID= "42 " NAME= "不规范收费
"> '+
' </DIVI> '+
' <DIVI ID= "45 " NAME= "服务不规范
"> '+
' </DIVI> '+
' <DIVI ID= "46 " NAME= "服务技能差
"> '+
' </DIVI> '+
几个汉字后怎么就自动换行了呢?
------解决方案-------------------- <%do While Not rs1.EOF%>
' <DIVI ID= " <%=rs1( "ts_id ")%> " NAME= " <%=server.htmlencode(trim(rs1( "ts_name ")))%> "> '+
' </DIVI> '+
<%rs1.movenext
loop%>
试试
------解决方案--------------------NAME= " <%= Repalce(trim(rs1( "ts_name ")),vbCrLf, " ")%> "> '+
------解决方案--------------------你是不是用了备注字段了