<script>ec(2);</script> asp 如何实现用多个复选框选中,一次删除多条记录呢? 方法一 For Each items in Request.Form("Checkbox") 方法二 就是用split(str,",")分开一条条的删除,代码如 needdelete =request("checkbox") array =split(needdelete,",") for i=0 to ubound(array) conn.execute(sql) next 方法三 就是使用sql了,delete from tablename where id in("&request("checkbox")&") conn.execute(sql)
|