对象不是一个集合的错误,各位大哥帮我看看这段代码哪错了!

me121121 2005-12-27 10:09:40
<%
ttt=request.form("ttt")

set dic=server.createobject("scripting.dictionary")
for each item in ttt
dic.add item,item
next
set rs=server.createobject("ADODB.RecordSet")
sql="select * from Product"
rs.open sql,conn,1,1
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>系统管理</title>
<link href="../Styles/styleyc.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form id="form1" name="form1" method="post" action="State.asp">
<table width="100%" border="1" cellpadding="5" cellspacing="0" class="boxform">
<tr>
<td height="25" class="titlebar"><input type="submit" name="Submit" value="查 询" /> 
<input type="reset" name="Submit2" value="重 选" /></td>
</tr>
<tr>
<td><table width="600" border="0" cellpadding="0" cellspacing="0" class="boxform">
<tr>
<td><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120"><input name="ttt" type="checkbox" id="ProductName" value="ProductName" />
产品名称</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductModelID" value="ProductModelID" />
产品描术</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductSpecID" value="ProductSpecID" />
产品信息</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductColorID" value="ProductColorID" />产品颜色</td>
<td width="120"><input name="ttt" type="checkbox" id="ProductSizeID" value="ProductSizeID" />
产品大小</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="600" border="0" cellpadding="5" cellspacing="0" class="boxform">
<tr>
<td><%for each item in dic
rs(item)
next%></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
...全文
141 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
me121121 2005-12-27
  • 打赏
  • 举报
回复
没人帮我看看问题吗?

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧