Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload text file from one server to another server

Status
Not open for further replies.

mThomas

Instructor
May 3, 2001
404
US
I've been learning a lot about ASP.NET. The help I've received in this forum has/is excellent.

I want to upload a text file from one server to another server.

On the first server I want to have a textbox where a user can enter some text. When the user presses the submit button, I want the text to be uploaded to a different server.

I control both servers.

Can this be done? If so any hints or suggestions, maybe some example of the way to connect to the second server and upload the text file.

I can build the form and found plenty of examples on how to upload to the server the form resides on, but haven't found an example showing how to upload a file from one server to a different server.

In Perl, it is fairly easy. I imagine it can be done in ASP.NET (using VB), but need some help getting started on the upload portion.

tia...mike
 
Can this be done? How do I open an FTP connection to a remote server?

tia...mike
 
i think the Iframe is a bit kludgy but would work.

another idea would be a web service on server 2 and pass the text to a webmethod that writes the file
just a thought

 
It is fairly easy and is no different to saving the file on the local server. As long as you have file access to the second server, simply supply the full path in the PostedFile.SaveAs method.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top