使用For Each ... in...循环:
<%
dim reID,strreID
strreID=""
strSQL=""
For Each strreID In Request("checkbox")
reID=Cint(strreID)
if strreID<>"" then
oConn.Execute "Delete From Table where ID="&reID
strreID=""
%>
删除页
checkboxid=request("checkboxid")
if checkboxid<>"" then
conn.execute "delete from [tablename] where id in ("&checkboxid&")"
response.Redirect "****.asp" '导向删除成功后页面
response.End
else
response.Write("<script>alert('未选删除项');window.history.back();</script>")
end if