|
-
Jul 9th, 2001, 02:52 PM
#1
Thread Starter
Junior Member
Easy question (?)
Hi,
I've written a DHTML application (a loan application) that will use a *.dll to do validation, etc. on the fields in the webpages. At the end, the end user clicks on submit, and a module will dump all the values of the fields out to a comma-delimited text file.
However, I need to get the text file back to the server. I can create a text file on the client machine using FileSystemObject (which doesn't help) and the only other information I can find is on RDS (Remote Data Service) but that is for accessing databases remotely.
Any ideas how I can accomplish this and salvage the code I've already written? (I know now that I should have done all this thru ASP, but I just learned that not too long ago...)
Thanks in advance for your help.
Stew
-
Jul 9th, 2001, 02:55 PM
#2
Addicted Member
If your server is configured to allow HTTP uploads, you may be able to make an HTTP "PUT" request, which would upload your text file. I don't know if that'll work for your app/config, but it's an idea...
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jul 10th, 2001, 04:16 AM
#3
Retired VBF Adm1nistrator
Well you could always do something like this :
Code:
Open "c:\localfile.txt" For Input As #1
Dim requestString As String
Dim tempString As String
requestString = "somefile.asp?filecontents="
tempString = Replace(Input(Lof(1), 1), vbCrlf, "///")
Close #1
Then you would request a file off the webserver :
requestString & tempString
And you would have now passed the contents of the file to the server via ASP.... or you could use some other script technology.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|