修改asp程序代码.能帮忙改下的朋友帮下.谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/05 18:56:30
下面这段代码的中括号里的字段我想也搞成有链接,可是我怎么做都不对.望大虾们能帮我解决下.万分感谢.在线等....
<%
Response.Write "<table width=99% border=0 align=right cellspacing=1 cellpadding=0>"

sql="select BigClassID,BigClassName from BigClass order by BigClassID"
rs.open sql,conn,1,1
set rs1=server.createobject("adodb.recordset")
while not rs.EOF

Response.Write "<tr>"&_
"<td valign=top>【"&rs("BigClassName")&"】 </td>"&_
"<td valign=top align=left>"
sql="select * from SmallClass where BigClassName='"&rs("BigClassName")&"' order by SmallClassID"
rs1.open sql,conn,1,1
while not rs1.EOF
Response.Write "<a Class=MainContentS href='SmallClass.asp?BigClassID=" & rs("BigClassID") & "&BigClassName="& rs("BigClassName") & "&SmallClassID=" & rs1("SmallClassID&q

建议分几个response.write
然后把
<%response.write""&rs("bigclassname")&""%>做为一个链接,
如果在response.write的里面单独提取,会导致出错

"<td valign=top><a href='#' >【"&rs("BigClassName")&"】</a> </td>"&_