We Recommend

ASP.NET 3.5 Unleashed ASP.NET 3.5 Unleashed
ASP.NET 3.5 Unleashed is the most comprehensive book available on the Microsoft ASP.NET 3.5 Framework, covering all aspects of the ASP.NET 3.5 Framework--no matter how advanced.


Posted By

krisdb on 05/17/07


Tagged

ASP


Versions (?)


split checkboxes


Published in: ASP 


  1. dim sId: sId = request.form("Id")
  2. dim arrId,iRow,iId,iCount
  3.  
  4. arrId = split(sId,",")
  5. iCount = 0
  6. for iRow = 0 to ubound(arrId )
  7. iId = arrId(iRow)
  8. if len(iId) > 0 then
  9. oConn.execute("delete from table where id = " & iId)
  10. iCount = iCount + 1
  11. end if
  12.  
  13. next

Report this snippet 

You need to login to post a comment.