Multiple Unknown Files
I want my asp page to upload all files from a certain directory on the client pc onto the server.
Code:
set FSO = CreateObject("Scripting.FileSystemObject")
set F1 = FSO.OpenTextFile(???) -> I only have the directory here
View Replies
ADVERTISEMENT
I have been writing a photoalbum in ASP and I am trying to receive an undetermined amount of files.
A more detailed explanation:
The client side (Javascript) generates a new file upload box as soon as the file in the first box is selected...the name of the file upload boxes is bestand[] so that the input is received in an array.
Now I am trying to receive all the files with ASP and store them on the server....
View Replies
View Related
I have a page with only one <input type=file ..> tag.
The page submits to itself with a "Save File to List" button. User browses thru the files and click the above button to add the file to a list. In the end user clicks "Submit" to upload all the files from the list to the server.
Problem # 1
I'm not sure how to save FILE type object collection/array, with every click of first button.
Problem # 2
How do I post that collection/array varaible when submit (2nd button) is clicked.
View Replies
View Related
I have had a post previously that was regarding an image editing component for ASP, I had settled on csImageFile, which performed all the tasks I needed, and so I started looking for an upload component... Well ChestySoft also had a component called csASPUpload, which worked great, so I opted to get that too... Then I also noticed that ChestySoft also had a product that was an OCX control that allowed you to do a multiple post upload... which would be perfect for my uses.
My question is, does anyone know of a free alternative to csXPostUpload, or should I fork out the $80 for a license? www.chestysoft.com
View Replies
View Related
Is there a way where an end user can download multiple files with one click?
I have a database table that can return between 1 and 12 different filenames (JPGs). I'd like to have a single button on the page that will initiate the download of all of them simultaneously. Is this possible?
View Replies
View Related
I try to do a multiple delete of files through FileSystemObject, but after deleting the first file, ASP gives me a "Permission denied" error. Below you see my code:
Set fso = CreateObject("Scripting.FileSystemObject")
For Each Item in Request.Form("filename")
delFile = path2 & "files" & Item
fso.DeleteFile delFile
Next
View Replies
View Related
I have provided 5 file controls on the form, the user should be able to upload 1 - 5 files at a time.
View Replies
View Related
We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of course, we can use <input type=file ...> multiple times and then submit once.
But this is not what I want, because we have to click "browse" button several
times to select multiple files before submit in this way.) "Upload multiple files PER TIME", I mean it. We can select multiple files in ONE time, submit in ONE time, and thus upload in ONE time. Are there any way to do that?
View Replies
View Related
what i am doing in swf ------i have one Base swf file this Base swf
call one another child 1 swf this swf call one another child 2 swf this is
the concept . This is run clearly in out side, but i attached these files in
aspx this is not run, only run parent file only Code:
View Replies
View Related
We have a master page set up and it is tied to its css file through the standard method in the <head> tag. What I would like to do though is from another page inheriting the master page to add another link to a css file.
That way i can have the sites global file used to make the general apperance consistent, then make the internal content more flexible without destroying the current css file.
Is this a possible task? When i went into the main master page and tried to add a <asp:contentplaceholder id="additionCSS" runat="server" /> tag to the head. When this is done visual studio alerts me saying it doesn't recognize the tag 'asp'. Is there a way around this? We are only just rewriting the site to use master pages now so I'm still figuring it out.
View Replies
View Related
I've got a site with an index page that has been set up to show my latest blog posts from the /blog.html page. From time to time (more frequent than I'd like) when I update my blog, I get the following error:
msxml3.dll error '8007000e'
Not enough storage is available to complete this operation.
/RecentPosts.asp, line 16
I've been told that this has something to do with my hosting company (godaddy) having a problem, but that seems odd to me. Can anyone here give me any ideas? Let me know if you need the URL and I'll post it here as well.
View Replies
View Related
i am doing a list of links for a modular website, i was useing a loop
to make a form for the links and link description so that i could have
as menny as i liked and called the text box link<%= no%and
description<%=no%and no goes up each time the loop happens.
my problem is that i dont know how to display them on the next page.
how do i request link(X)? i have been looking at this problem for hours
can someone help?
View Replies
View Related
I have two pages of aspx one is content.aspx and other is framing.aspx
I want that I have 3 diffrent link on my content.aspx
like www.yahoo.com
www.google.com
www.msn.com
and on framing page there are only frame on top my header, on bottom my footer:
but i want that when i click one of the link on content.aspx it must be opened in middleframe of framing.aspx
I have created link using <a href="www.yahoo.com">yahoo</a>
same like this for other 2 .
View Replies
View Related
I am getting this error that I have never seen before. Its strange. Everything else works fine. Any Ideas?
Microsoft OLE DB Provider for ODBC Driverserror '80040e10'
[Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
/ASP/Error.asp, line 56
Here is the code:
View Replies
View Related
I have an asp application running with the charset set to windows-1252.Recently, my customer complained about some unknown characters(rectangulars) appeared on the screen.
Later I found out from database that the unknown characters are supposed to be coma (,). I then tried to set the charset in all pages to UTF-8 but it did not solve the problem. I have a problem debuging since my testing machine does not have this problem.Is there a possibility that font selection such as sans-serif can cause this problem?
View Replies
View Related
I am trying to send an e-mail using CDO I get this message when trying to send an e-mail.
I am using the object
Set ObjMsg = Server.CreateObject("CDO.Message")
CDO.Message.1 (0x800C000D)
The specified protocol is unknown.
View Replies
View Related
got the following sql
Dim varEmail = Request.Form("email")
Dim sqlQuery
sqlQuery = "SELECT * FROM users_tbl WHERE email ='+ varEmail+'"
However this does not seem to work as expected..what am i doing wrong?
I tried
sqlQuery = "SELECT * FROM users_tbl WHERE email =" + varEmail
But this doesnt seem to work either..when i try recieving records from the database it just says unknown column etc error
View Replies
View Related
I'm getting an http 500 error message, and I can't seem to find where (since it won't give me line-errors). Yes, the host supports asp
Here is the code, maybe you can find an issue? Its not too long: Code:
View Replies
View Related
I need to create a script that will collect any variables sent by a form.
Reason: A company that I work for wants to have a script that they can pretty much send any HTML form to that will send them an email with the results. So if they make a new form with different form fields next week, they can point it to the same script.
Is there anything in ASP that can "Just collect Anything/Everything" that is sent from the form?
View Replies
View Related
I have admins who create reports with titles that my code then creates a field with that title in another databse. The admins also apply permissions to staff whether they can see that report or not.
My problem is my code doesn't know the name of these new fields, is there any way in ASP to interegate the access field names in a record set?
View Replies
View Related
I have a form that is dynamically generated since it is populated with values retrieved from a database. The form can of course also be submitted, which is where I run into some problems.
Since I never know in advance what the length of the form (or for that matter what the different elements' names and values) will be I don't know how to write the code in "receive.asp" to retrieve all values from the form correctly without excess use of "request.....".
I shouldn't have to write requests for every single potential element name that is stored in the DB. Please note that the form can sometimes also contain radio buttons and check boxes, even though they are not present in this short example Code:
View Replies
View Related
I have a database driven (ms access) website which runs fine on my computer (win 2000 iis6). However, on uploading, some pages am receiving the following error
"An Unknown script error occured while processing your request."
......
View Replies
View Related
Ok my boss wants to know if there is a way to display an unknown # of pics from folder onto a web page ASP using VBScript or JavaScript... doesn't really matter.
You don't know the names of the pics or how many are in the folder just that you want to display all the pictures in the folder...
View Replies
View Related
Just as the title says I am trying to do something impossible with a single SQL statement. I am doing an ASP webpage for internal use at the company I work for.
I want to know if there is a way to insert/update data into multiple tables in 1 SQL statement.
If it requires functions | views or anything else that is fine but I don't want to have 3-4 different SQL statements to update 2-3 different columns in different tables.
View Replies
View Related
I have a search option on my website, which should perform a search on 4 fields, as follows:
tblNews
headline
content
tblDatabank
filename
description
It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.
I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?
View Replies
View Related
I have a website that we display images we have saved into a SQL Server 2000 database as binary BLOB. This is on a Windows 2003 Server. Just recently (a week ago) this website began to save the images it is displaying on the website as ASP pages in the Temporary Internet Files > IE.Content > Folder.
We have other websites where we use the exact same code and these do not save files on the server when they are displayed.
Here is the code to display the image:
Set rs = objConn.Execute( SQL )
Response.ContentType = "application/octet-stream"
Response.BinaryWrite rs("Product_Image")
SQL is the SQL String to get the image from database
When I add this code:
Response.ContentType = "image/jpeg"
The images still display on the website, but now are saved in the Temporary Internet Files folder as JPG's.
View Replies
View Related
i hav problem with updating the data. In the asp page i hav displayed records based on search criteria. in display mode im displaying the to be updated field in combo box for each similar contract_no. each contract_no will hav different no of rows and to be updated combo box.
based on the selected value in the combo boxes of different contract_nos i hav to update the combo value with old value. user select multiple combo values at a time I need anybody's help with detailed programming logic.
View Replies
View Related
Could some help m figure out to strip an unknown range of characters in a path between the first "/" and "/" found in a folder path somewhere on my site. Code:
View Replies
View Related
Can a php file be executed inside an asp file? I need to execute a php file in another asp file but i'm not so sure it's possible.
My server can run both asp and php and they run without any problems... I just need to find a way to include the execution results of the php file in the asp one.
Is it possible to use SSI and include the executed php file and then the executed asp file in a main ssi file?
View Replies
View Related
I have installed PWS in windows 98 in each of the system at various places and put my Sales program files in the WWWROOT directory in all the branches. I'm afraid that the users may tamper my ASP files. Is there any way of converting .ASP files to .exe files so that the dont see my program.
View Replies
View Related
I was wondering how some sites let you search by using a form, then present the results as static .htm files.
The reason I ask is that I tend to use ASP to process form information, then give the user a list of results presented on an .asp page. The list is simply drawn from a database in real-time and formatted into a template page.
The problem with this is that search engines can't see any of the information in the database, since they can't do the form submission. Is there a way around this?
View Replies
View Related
I have a database being updated by a text file every ten minutes, so in the code that is why the column names are messed up.
My problem is I get all the sums, and counts all working. What I need to do is at the end of it have a sum for for all the columns returned, i.e. col002, I need all the sums in that column added up for a total at the bottom. The following code works but when I try to do column totals I can't get it to work, Code:
View Replies
View Related
I need to connect to 2 different databases in ASP and execute two different queries. Please let me know how to proceed. I understand that ADODB.Command option can connect to only one database at a time.
View Replies
View Related