Delete problem!!!

Results 1 to 2 of 2

Thread: Delete problem!!!

  1. #1
    jenny Guest

    Default Delete problem!!!

    I am retriving data from database when i click on checkbox to delete multiple records or single record, The record which is in first row get&#039s deleted no matter if i click checkbox on record on the row 2nd or 3rd. <BR>

  2. #2
    Hema S Guest

    Default RE: Delete problem!!!

    Are you passing the Record Id (say its primary key) to the delete routine? If not, you must, you can give a name to the checkbox (so all checkboxes for all records will have the same name). The value of each checkbox is the primary key of the record. When you submit to a form pick up all values in the checkbox (Request.Form("check")). This will contain all the primary keys of the checked records. Now perform an Sql query to delete all records with these primary keys. Don&#039t hesitate to ask for clarifications.<BR>Hema

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts