我如何使用asp.net代码进行ftp [英] How do I ftp using asp.net code
本文介绍了我如何使用asp.net代码进行ftp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用asp.net代码ftp文件
How do I ftp file using asp.net code
推荐答案
您真的要将文件传输到其他服务器吗?因为如果只想将文件复制到Web服务器中的某个位置,则从服务器端代码开始,您可能要做的就是本地复制.
如果您确实要使用FTP,请查看FtpWebRequest
类.请参阅 http://msdn.microsoft.com/en-us/library/8exfzxft.aspx [ ^ ]
Do you really want to transfer a file to a different server? Because if you merely want to copy a file to a location within the webserver, from your server side code, all you probably need to do is a local copy.
If you really want to use FTP, then take a look at theFtpWebRequest
class. See http://msdn.microsoft.com/en-us/library/8exfzxft.aspx[^]
从这个问题和您的上一个问题中,我认为您需要做的就是熟悉HTML输入(类型=文件)控件.
使用ASP.NET上传文件
From this question and your previous question, I think what you need to do is become familiar with the HTML input (type=file) control.
File Upload with ASP.NET
这篇关于我如何使用asp.net代码进行ftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文