This is a discussion on "Delete All Record in a search result page?" within the Classic ASP section. This forum, and the thread "Delete All Record in a search result page? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Delete All Record in a search result page?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Delete All Record in a search result page?
Hai spinal...
I have this page that will displays all the information from a search page. The user will enter a DATE in the search page and then the result page will display all the DATE that the user requested. What i want to do in this result page is, I want to delete all the RECORD/DATA displayed in the result page and then after deleting, the page will redirect to the main page. I dont know how to do that spinal. Could you help me please. Below is my code for the result page. "bnBookDate" is the search field in the search page. I tried to use your delete by checkbox in this code but I cannot manage to modify them because after deleting, we cannot display back the data(which your code does that..) We must redirect the page to another page. Please spinal...HELP ME! Result page: This is an action page comes from the search page.
Please help me.........
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
|||
|
|||
|
Loop through the RS and store the unique identifier into an array, then loop through the array deleting the records...
Example:
|
|
#3
|
|||
|
|||
|
What if I do this...
The data wont be display...it only delete them and then redirect them to another page..."delete_success.asp"
Thanx .....
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#4
|
|||
|
|||
|
Judging from you're current code you know enough to judge placement, my code wont work by itself, you need to customize it to fit you're needs, that was just an example for you to go off of.
Right after it processes the delete queries, place a response.redirect("whereverYouWantToGo.asp") |
![]() |
| Tags |
| delete, record, search, result, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Record the link you clicked to leave my page | TheSealPortalTeam | PHP Forum | 22 | May 5th, 2008 20:05 |
| Printing single record from Access via Report in Web Page | Neotekk | JavaScript Forum | 0 | Jun 18th, 2007 15:20 |
| Add/Delete/Modify Database Record form | David Blake | Starting Out | 6 | May 1st, 2007 16:22 |
| Delete file in password protected page. | SweetLou | Classic ASP | 4 | Jan 7th, 2006 21:15 |
| Delete record problem | Gee Bee | Databases | 2 | Jan 4th, 2006 18:28 |