I have a windows app that uses vb.net WebClient upload function to upload a file to the website for processing. My website uses ASP. I know how to parse a uploaded file from a webpage using <input type=file...> inputfile control. But I just wondered how I can receive or parse a file from a winapp.Does anyone have some sample code for upload file? both in winapp and server side.
We face problems uploading excel (with macros) documents using HTML File Upload.
The file contents are corrupted while viewing the same. However, we are able to upload excel (w/o. macros) documents successfully. Is there anything we have to take care of, while handling uploads of excel documents with macros?
Who wants to me all about xmlHttp and how to use it with asp. Here is what I have so far and what I need to do. Something similar to the following. Code:
set xmlhttp=createObject("Microsoft.XMLHTTP") xmlhttp.Open "GET", "https://secure.somesite.com/PayMeEx/example.asmx?op=Process", False xmlhttp.Send("UserName=someguy&Password=123456&Card=12345678910")
This doesn't seem to work. I just get an error. How can I make it work and then parse the returned xml
Did anybody creating ASP application using the traditional method like calling the COM object from the ASP?I have a friend, he told me he actually did it differently. He used COM as a parser and it read the HTML pages and serve it to the client machine. I don't understand what the idea it is.
I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.
Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.
I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.
I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.
What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).
I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.
I have a legacy ASP application, which is full of memory leaks. The source of the leaks are ADO objects that were not closed. For exapmle "Open" recordset without "Close" and so on. As the application is rather big, manually parsing asp code is rather painfully. Are there any asp code parsing tools, to analyze the source code?
I have a contact form, that needs to be sent as email. However, I would like that email to be received with elements of the contact form in order and not as code in between.
Personally I would put it into a DB. But My client uses mac, and a server that supports ASP but not access db. Go figure. and the current form made in PHP does not work for some reason.
Is there a way to parse the email in ASP so it is organized.
I'm looking for a solution that would allow me to take an advanced search string from an HTML form such as:
"ASP Functions" AND (M@rco OR CrowDozer)
and parse it into a nice SQL query. I started to write a function where I could pass the search string and the field I wanted to search and it would return the WHERE clause, but after a few minutes my head started to spin and I began to feel ill.
I'd need a parser that properly handles: parenthesis, phrases delimited by double quotes, AND keywords, OR keywords, NOT keywords, and uses the AND as the default joiner. Has anyone seen any premade functions that would do this? I'm an IS major, not CS, so I am being trained to plug cables together.
I am trying to port PRAX (PHP Record-oriented API for XML) to ASP and have run into a problem. With Microsoft's XML Parser, to get child nodes, the only way I have seen is by calling on obj.childNodes(1). I need to get a child node by name, not by number, since it could be in any order. Is there a way?
If not, I will have to write that part of the code differently by using an array. I don't want to do this because it would make the code more memory intensive and not as powerful as the PRAX implementation.
I'm trying create an MSXML object so I can load an XML file into it and start to retrieve values from it. The msxml.dll is there and registered. When I try and run the code below either the object doesn't get created or it cannot load the XML file. And I just can't see why. Does anyone have any ideas.
<% 'Create an instance of MSXML to retrieve values from the XML file set objXML = Server.CreateObject("microsoft.xmldom")
strPath = server.MapPath("books.xml")
'load the XML document that we want to add to the database objXML.load(strPath)
'see if the object loaded OK if objXML.parseError.errorCode <> 0 then Response.Write "object could not open" else Response.Write "object opened fine" end if
I want to be able to post data from a form on one server to another server at regular intervals. I know the XML parser is built around this kind of technology and can post information to a server.
Is there a way of either posting form data to a seperate server without user interaction either using the XML parser or by generating a form and using some JavaScript to autosubmit a form once the page has loaded.
I'm looking for a solution that would enable me to specify a remote URL and parse the HTML (doing various things like replacing links or image refs) and then deliver the revised page to the browser.
I know it's possible, because site search engines and W3C Validator do that sort of thing, but I can't find anything suitable on the web.
Basically I need the plain ASP source code - I don't want anything that would require me to install new components.
I'm working on a asp-application where I shall upload a xml-file from the user, and then process til file (xml) for insert into a database. I'm currently using a "INPUT-field of TYPE=file" to browse for file, and a extra submit button to perform the actual transfer and start file-processing.
Is it possible to show the user one ebutton "IMPORT" without any text-field associated with it, which browses for the file and directly startes the upload to server and triggers file-processing. The actual processing of the file must be done on the server-side (inserts to db etc.).
when i load the page nothing happens, it just refreshes to a blank page. does this page need to be named something special? does it need to be on the same server it's uploading to? Code:
Where can i find information on how to upload files to a folder on my server using asp code and a form? Does anybody have a simple snip of code for this that they would mind sharing?
Could someone point me in the right direction for an asp script that would save an XML file to a folder on the same server it resides on? This XML file will be sent from another application and the asp script needs to accept the XML file (no validation of the XML in the file is required) and save it to a folder on the server. I've seen scripts with a web frontend which requires user interaction where the user has click a browse button and select the file to be uploaded from their local machine. The script I require will have no user interaction - the XML file will just be fired at the script from the other application and it should save it to a folder on the server.
I have to do something like this that a user see list of record if he would find record and want to upload that list then he could upload in a pdf file of that record.
I'm looking for some ASP code that will allow a user at my website to upload a jpg. image from his or her harddrive to my website or just to mail it to me via email.
I want to build file upload functionality that, when user clicks on a link, a file browse box pops up and allow the user to select a file and upload it. Is this supported by IE at all? If yes, could someone send me a simple example?
Im trying to upload files to my website, my write permissions folder is /db, but when I try to upload some file, Directory does not exists shows up. What could be the problem? My code:
I want to upload a doc file to email form and want to send to my email adress. Anybody have idea how can I upload a doc file into a form and send it as attachment to my email address.
How can I Upload one file .dbf to SQL SERVER, I can't not get path where file .dbf store because it store in pc client and I don't want copy it to Server.
I have written a script to upload the file. The script can upload txt, rtf file. However, when I try to upload doc file, the file cannot open, or just decode as a rubbish. Do you have any idea about this problem?
In my project I am uploading file, using HttpPostedFile in ASP.NET. In my project I have to allow user to upload pdf, gif and jepg file only. I know after uploading file I can check ContentType of file and give user a massage.
But I like to filter files when in File Browser. So when user will click the Browse.. button only list of pdf, gif and jepg files will be showing up in the file browser. But I don't know how to do that .