Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Re: checkbox


Message #1 by "Roger Yong" <ryong@b...> on Fri, 19 Jul 2002 10:10:19
Hi Arshad,

here is and URL link and in the search box type in Deleting Multiple 
Records via Checkboxes. The have an extension for this function.

hope it help.


> Hi,
Suppose I display the contents of a table in my ASP
script.now I wanna add a checkbox to each record so
that if the user check the box and press delete button
the record gets deleted.There is a unique customerid
for each row.
Please give me some ideas regarding this.
Thanks in advance
regards
--Arshad--

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
Message #2 by "Vaishnavi" <mail2vaish@y...> on Wed, 17 Jul 2002 12:08:20
Hello,
It is possible to do the sameif you post it th the same page and based on 
some variable do the processing. However, from maintaining of the code/ 
better understanding it would be easier to do the processing on a 
different page(there need not be any display ib this page) and then at the 
end redirect it to the first page
--Vaishnavi

> Hi,
Thanks for your help.
Isn't it possible to do it in single page or is it
necessary to submit the for to other page.its like if
we submit the page to itself the records gets deleted
and the remaining records are displayed with the
checkboxes so that if we want we can delete some more.
Thanks
Regards
--Arshad--


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
Message #3 by "Schelling, Michael" <schellim@s...> on Wed, 17 Jul 2002 07:18:24 -0400
Here are a few web sites that explain things (better than I  ;-)

http://devguru.aspin.com/default.asp?tree=/tutorial/database/deletere&cob=de
vguru&rcobvs=1223222&cobvs=51232214

As far as doing it on the single page, that is the way I prefer to do
things. This way if you want you can easily present refreshed information.
For example, if you have a list of names and allow a person to click on a
name (or a delete button, or whatever) to delete the name when the page is
refreshed the name is no longer there. Of course you have to put your
database delete processing at the top of the page (file). 

Mike 

-----Original Message-----
From: arshad siddiqui [mailto:ash_arshad@y...]
Sent: Wednesday, July 17, 2002 3:44 AM
To: ASP Databases
Subject: [asp_databases] checkbox


Hi,
Suppose I display the contents of a table in my ASP
script.now I wanna add a checkbox to each record so
that if the user check the box and press delete button
the record gets deleted.There is a unique customerid
for each row.
Please give me some ideas regarding this.
Thanks in advance
regards
--Arshad--

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

Message #4 by arshad siddiqui <ash_arshad@y...> on Wed, 17 Jul 2002 00:43:43 -0700 (PDT)
Hi,
Suppose I display the contents of a table in my ASP
script.now I wanna add a checkbox to each record so
that if the user check the box and press delete button
the record gets deleted.There is a unique customerid
for each row.
Please give me some ideas regarding this.
Thanks in advance
regards
--Arshad--

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
Message #5 by "Jonathan Charlton" <jcharlton@e...> on Wed, 17 Jul 2002 10:07:36 +0100
Output a checkbox for each record to the page and set the name property to
the unique customerid in your asp. Then submit your form to another page
which performs the same loop removing all records where Request.Form("unique
id") = "on"

Hope that helps

Jon

-----Original Message-----
From: arshad siddiqui [mailto:ash_arshad@y...]
Sent: 17 July 2002 08:44
To: ASP Databases
Subject: [asp_databases] checkbox


Hi,
Suppose I display the contents of a table in my ASP
script.now I wanna add a checkbox to each record so
that if the user check the box and press delete button
the record gets deleted.There is a unique customerid
for each row.
Please give me some ideas regarding this.
Thanks in advance
regards
--Arshad--

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



Message #6 by arshad siddiqui <ash_arshad@y...> on Wed, 17 Jul 2002 03:34:30 -0700 (PDT)
Hi,
Thanks for your help.
Isn't it possible to do it in single page or is it
necessary to submit the for to other page.its like if
we submit the page to itself the records gets deleted
and the remaining records are displayed with the
checkboxes so that if we want we can delete some more.
Thanks
Regards
--Arshad--


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

  Return to Index