I have two tables: Table-A and Table-B. I extract info into a page from Table-A, Row-1. This displayes nicely into a page. I would then like this info to be inputted into Table-B Row-4 remembering that it came from Row-1.
[so far no problems]
I then want at a later stage, Row-4 to update Table-A, Row-1 with it's contents AND for Table-B, Row-4 to change a value in itself. Hope that makes sense, if so how would I go about it? Otherwise I can really go into detail.
i am working on application which we are migrated asp application from WIN NT to WIN 2003. Here iam facing some problems.
here iam loading .asp file as image on another .asp file to display data in chart. this is working good in WIN NT but it is not loading in WIN 2003. iam giving html tag which we used to load the image
<img src="abcd.asp"> (this .asp is in the same directory)
but this is not loading. Is it the problem with WIN 2003
actually, I have a problem while i want to add, delete, or edit a record to a database through a asp page, I can read well but when i want to submit changes using rds object , the data does not change on the source database,
I tried hard to get a solution but i think that the actual problem is only on one figure which is the server value of the data control when i use my own iis server, I do not know this value and microsoft is saying use an empty value but it does not work either.
This code works fine, it deletes the record that already exist in the database and displays a message to the user the record has being deleted.... but it also it has a problem, if you enter a record to delete from the database and this record does not exist it displays the message that the record has being deleted, while instead it should display an error that this record does not exist in the database.
Ive run into a little trouble. I am sure all of you have used hotmail. Well you know when you select all items to delete, i would like to do something like that, however not delete, but update a field from no to yes.
I would like to add checkboxes to an asp table. So if the user selects say three items they then click on a button, say marked and for each item, it will go to the table and find each record in turn and update the corresponding field from a no to a yes.
Updating is no problem. The problem is, how do i add checkboxes to corresponding asp table. So that particular checkbox corresponds to that particular record. I don't know how to link them together.
I have a form that contains many pages. If someone clicks on delete, the application takes the user back to page 1 instead back on page in the breadcrumb trail. It is fine when the user is on page 2 but they could be on page 10 and click delete and then they are back to page one. I want to have the application go back on page at a time each time they click on delete. Here is what I have for code:
If LEN(page & " ")=0 Then page = 1 End If page = CInt(page) If i = page Then response.write "<font color=""#CC0000""><strong>[page " & cstr(i) & "]</strong></font> "
I have a script which allows a user to upload and delete files from the server.Is it possible (and if so how) to do a check to see if the folder is empty (ie if the last file in a particular folder is deleted by a user) and if it is empty, delete the folder?
On my webpage users can upload files and also delete those files. Everything seems to work, but when they upload a file that contains spaces, I am having problems getting the file deleted, for example: "This is my file.txt"
Is there a way I can delete this file. I have tried to take out the spaces, but the file still doesn't delete: <%=Replace(Request("MyFile")," ","+")%>
I'm trying to delete 2 files using fso. The mail file name is stored in an access db.
using the code below I can delete the main file but not the thumbnail.
The thumbnail has the same file name plus the suffix "_small" so if the main file is called "mypicture.jpg" the thumbnail is called "mypicture_small.jpg"
The main file is being deleted but no matter how I try I cannot get the thumbnail deleted. They are both in the same folder with the same permissions.
I am using ASP with SQL for my database.The problem I have is that even after I have ordered certain items from the shopping cart table on the webpage, I cannot remove them - that is the entire list shows up the next time the table is opened.
is there any way I can delete the items once ordered so as to not let them show in my table?
How can I delete the files using ASP?Following is th code :
var objFso = Server.CreateObject("Scripting.FileSystemObject") var strFileName = Server.MapPath(".") + ""+ "SubmittedDoc.xml" if (objFso.FileExists(strFileName)) objFso.DeleteFile(strFileName)
i have a site that has several joins. I need a function that will go out to see if the master table is using a value from a dependant table before it allows the value in the dependant table to be deleted. nothing more than that.it could be a a simple js function that basically does?
rs = recordset
if count(rs) = 0 then delete field else if count(rs) is > 0 then "You can't delete this record"
i would like to delete a specific line of a text file. for instance, if the line i'm looking for is "abc", then i'd like to delete that line only (all the lines are unique).
is it possible to do this? or would it be easier/better to read all the lines into an array, delete the file, recreate the file with the lines from the array, skipping over the line i don't want?
I have a problem of deleting old version of files. This is wat happens: Client side sends a few files to the server side via http and are saved into a folder. I need to delete these files when another batch of files are send next time. Any suggestions to solve this problem.
Timestamp is out of question because it is not reliable to use time to differentiate between files within the same batch and other batch. Sometimes the sending might be delay by server. Therefore i need to come up with some sort of detection for new batch.
i'm using the following code to delete a file but when i execute the script it just freezes until timeout. any idea of the problem?
'///DELETE ORGINAL FILE Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") objFSO.DeleteFile "C:Documents and SettingsGavMy DocumentsDateWebsitewwwuser_images" & filename Set objFSO = Nothing
What functions are possible to delete rows, tables, entire database from the URL when displaying records from a database. I want to be able to stop all of these possibilities from happening.
I am not sure if this is the right place to ask. but... I need to delete records where two fields in the same record are equal. I am not sure how to go about this.will this work?
strQ ="DELETE FROM Request_Notify WHERE Field1 = Field2"
1. How do I delete several records with the same data? I.E. 5 items have field propnum=55 and date 05/05/04. I want all of them deleted. What does the SQL string need to be. I know SQL="DELETE FROM bleh WHERE propnum=55" But how to delete all of them?
2. How would I create a NEW table and change the column headings through ASP? I want to be able to delete all records from a certain month but before deleting them, putting all of the data into a new table, one for each month.
I have developed an com+ email component.It's supposed to send files as attachments and then to delete those files(which are temporarily stored in a folder).The code for uploading files is: Code:
im just wondering how can i delete a file (mainly pictures) from asp pages and is there any extra permissions more than read & write permissions i need to set for this operation ?
This works, but when the user logs out, I want to delete this cookie. I used the following code:
Response.Cookie("USER") = ""
Although the Cookie collection in the response object now has the correct value (blank) for this cookie, IIS does not send the new cookie information to the browser. I have tried this code after the <HEAD> element but before the <BODY>, I've also tried it before any other code (HTML or ASP) on the page. I have even tried Response.Cookie("USERID") = "NOTHING" and that doesn't get sent to the browser. This is classic ASP, what am I doing wrong? This works fine with non-indexes cookies.
when i click the link, it goes to the correct "case" and will run through my deleteRecord subroutine. I checked it with output at the very beginning and end of the delete routine.
my problem is that nothing happens and i want the record to be deleted.