navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Using Check boxes to do multiple deletes

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Using Check boxes to do multiple deletes
Page: [1]
 
Oztrades

 

Posts: 11
From: Vic, Australia
Status: offline

 
Using Check boxes to do multiple deletes - 10/23/2001 20:37:00   
I want to use checkboxes to multiple delete SOME results from a database (eg as in hotmail)
I have started by inserting a DRW into a form, adding checkboxes to the line and a delete button and posting to another form.
What value do i use in the checkbox, the form advanced properties...
So far i can only delete all the tests or receive an error requesting more parameters
Me thinks i need to add the IFTHEN comment but that means posting to another formmmmm
Regards

------------------
" TARGET=_blank>http://www.oztrades.com.au
your choice"

Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Using Check boxes to do multiple deletes - 10/23/2001 14:56:00   
What youll do, is have a group of check boxes. Each with the same name.
eg "DeleteID"
Each checkbox needs to have a value = to the ID of the record.

When you perform a delete, you post to your delete page and do a :"...where ColumnID IN (::DeleteID::)"

What happens, is a comma delimited array is formed containing the ID numbers.
eg : 1,6,12,14

So your SQL string would actually look like :

"...where ColumnID IN (1,6,12,14)"



< Message edited by Spooky -- 10/28/2004 14:57:41 >


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Oztrades)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Using Check boxes to do multiple deletes
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts