| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 179 人关注过本帖
标题:[asp]删除多条记录 在线等待..................
收藏  订阅  推荐  打印 
jxyjiy
Rank: 1
等级:新手上路
帖子:2
积分:120
注册:2008-8-14
[asp]删除多条记录 在线等待..................

这个问题闹的我好半天了..各位编程高手帮忙.
以下是删除过程.
<%
Sub delete()
ID = Trim(Request.Form("ID"))
If Trim(Request.Form("ID")) = "" Then
Response.write("<script>alert('对不起,您至少选择一条需要删除的日志!');location.href='AMwrite.asp'</script>")
Response.End
End If
Dim things
Dim things_numRows
Set things = Server.CreateObject("ADODB.Recordset")
things.ActiveConnection = MM_conn_STRING
things.Source = "SELECT * FROM thing Where ID In("& ID &")"
things.CursorType = 1
things.CursorLocation = 2
things.LockType = 3
things.Open()
If things.Eof And things.Bof Then
things.Close()
Set things = Nothing
Response.Write("<script>alert('您所提交的数据编号不存在,可能已经被管理员删除!');location.href='AMwrite.asp'</script>")
Response.End
Else
things.delete()
things_numRows = 0
things.Close()
Set things = Nothing
Response.Write("<script>alert('日志删除成功!');location.href='AMwrite.asp'</script>")
Response.End
End If
End Sub
%>
上面是删除过程的代码怎么删除无法删除多条记录呢?
--------------------------------------------------------
Trim(Request.Form("ID")) 输出为 :
1,2,3,4,5,6,7
--------------------------------------------------------
请各位帮忙看看啊!~

[ 本帖最后由 jxyjiy 于 2008-8-14 15:39 编辑 ]
搜索更多相关主题的帖子: asp  记录  删除  
2008-8-14 15:33
jxyjiy
Rank: 1
等级:新手上路
帖子:2
积分:120
注册:2008-8-14

在线等..................
2008-8-14 15:38
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.045165 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved