This is a discussion on "Delete All Row (Select All Row Using Radio Button)" within the Classic ASP section. This forum, and the thread "Delete All Row (Select All Row Using Radio Button) are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Delete All Row (Select All Row Using Radio Button)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#21
|
||||
|
||||
|
worked on my pc
|
|
#22
|
||||
|
||||
|
sat was me again.... ^^^^
sorry!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#23
|
|||
|
|||
|
Hai spinal....
You mean the code that you gave me on the first time worked on your pc? Actually when I throw the viewLec.Close...,the data/row that I am trying to delete is still there and it is not being deleted. When I click on the Delete text or delete using the checkbox, it display the information that i am tring to delete at the top of my page.... <font size="1">1. Response.Write "LECTURERS TO DELETE: " & Request("delete") & " " 2. Response.Write "deleting lecturer " & lecturer & " (DELETE * from userlist WHERE (no = " & lecturer & ")) ... "</font id="size1"> but the data is not being deleted, it still there! Ok, do I have to change anything in that code? Because I just use your code straight away without changing anything, since I thing there is nothing for me to change! My first method (the file that I gave you) peform the delete using an action page! This action page is the page that actually peform the delete. but you have actually made the delete operation on the same page as the display page. - my understanding Spinal...did it actually delete it in your PC? Help me spinal...I am crying here :sad: Can you tell me step by step what to do or change in that code (if there is..?) please...please...please...spinal anything that you think that I might forgoted to do here?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#24
|
|||
|
|||
|
Hai spinal...
I have tried double and triple checking the code... still it wont work! Please help me spinal... The result is still the same.. at the top of the page, it display the delete information (what are the data "the checkbox number value" that i am trying to delete) But the data is still there...not being deleted! Is there something wrong with the delete command or somethin? I am using windows xp,IIS 5, access2000...does that matter
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#25
|
|||
|
|||
|
Hai spinal...
Can you help he again please... I cannot do it man! What is wrong with the code? Can you look into it again spinal! Plase spinal...I am begging you please... I just need the delete operation works, and my system will be complete! I just can wait that moment spinal.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#26
|
||||
|
||||
|
Monie, please respect that everyone here has a life outside of the forums, and often is the case that people have jobs besides also.
May I respectfully request that you not keep posting (You've made 3 in a row in this thread!!).... instead, just be patient, and you will receive the help you are after. Being impatient is likely to put people off which wont have your desired effect. Can you post your FULL code please? (... and then patiently wait for a response? )
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#27
|
||||
|
||||
|
DAMN!
been busy at work, I'll post overnight! ps.: I logged in this time |
|
#28
|
||||
|
||||
|
doh!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#29
|
||||
|
||||
|
Ok, I'll wait...
I hope sombody will help me... Sorry everyone:mad: |
|
#30
|
|||
|
|||
|
Hai spinal...fuhhhh....!!!!
After 2 long weeks, studying, trying to understand, impliment your code, today..I have discover the problem! It is a simple small problem. Actually, the code that you gave me, it delete the record reffering to a "no" field in my database. Thats why the code doesnt works! But when I tried to delete reffering to the "username" field using your code, IT WORKS! The only things that I dont understand here is why when I want to delete using the "no" field, the code doesn't works! Here is the comparison code!
"no" in a autonumber unique primary key!</span id="red"> This is the success code deleting using "username" field as the refference to the delete operation.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#31
|
||||
|
||||
|
glad to know you find the solution to your problem.
the only change you need is to put quotes around thye username in your SQL statement: DELETE * from userlist WHERE (username = '" & lecturer & "')"
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#32
|
|||
|
|||
|
Dear spinal...
I just cannot detect what is the problem! The code below is a code to delete using username as the delete refference! Could you help me, I mean, I have remove the ' symbol, and change the delete refference to my "ID" field (as you said earlier), and it still dont works! What I want to do is to delete using this: value="<%=viewLec("ID")%>" <span style="color:red">but not this:</span id="red"> value="'<%=viewLec("username")%>'" <span style="color:red">What are the changes that I have to make in the 1. sql delete code, 2. checkbox value and the 3. a href delete text?</span id="red"> Could you show it to me, please... This code delete using username,I want to change to delete using ID!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#33
|
||||
|
||||
|
I wish I could help you but I've been really busy latelly and will be for the next few weeks.
I will try and go through your problem when I get some time but till then, I hope some one else will be able to help you out....
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#34
|
|||
|
|||
|
Ok spinal...I'll wait you!
p/s: I want to delete using an ID field but not a "username" field. Anybody please help me:mad: Rob..I know you can help me, please.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#35
|
||||
|
||||
|
Drop the quotes from around ID.
ID is an integer field. Interger fields contain ONLY numbers, and like all other number fields, should be referenced without the quotes. Just remember quotes for strings, no quotes for numbers. Hope this helps you... please try and solve this monie.... there has been every single piece of advice given in this thread that you need to solve the task..... We have helped you loads and to me, it just seems as though you want us to make something for you that works and then just hand it to you...... We dont work that way here... we always give people the information needed to solve their own problems.... we try not to solve them in their entirety as this leaves the person with nothing to do, and they do not learn any thing from it. I hope you understand. Please post back again if you get stuck, but please dont expect anyone to quote you line by line code..... although we could do that, it really would not help you learn.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#36
|
|||
|
|||
|
I understand you Rob.
Well, for some reason, I have discover the problem, and I would like to share this with you all... Actually the problem does not come from the code that spinal gave me. It comes from the database. What I have been trying so hard here is I am using my "no" field in my database and I make the checkbox reffering to that field for the delete refference. A miracle happen to me when I change the database field name from "no" to "RNO", and then the delete successfully done. So, you guys never encounter any problem like that huh? So thats mean, all this time, the code works, nobody point me to the database? Well, thanx guys for all the effort. I love webforumz! Thanx especially to spinal and also Rob
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|