上传文件夹到服务器在C#Asp.net [英] Upload Folders to Server in C# Asp.net

查看:474
本文介绍了上传文件夹到服务器在C#Asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何上传文件/使用fileuploader control.i在asp.net中的图像要上传的文件夹不是一个单一的file.i想整个asp.net网站上传到另一台服务器(可能会或可能不会使用FTP)使用C#编码。
连我试图使一个zip并上传,但我们不能上传压缩过....
什么是用C#编码目录/文件夹/文件上传到整个服务器的最佳方法是什么?

I know how to upload files/images in asp.net using fileuploader control.i want to upload folders not a single file.i want to upload whole asp.net website to another server (may or may not using FTP) using C# Coding. Even i tried to make a zip and upload but we can not upload zip too.... what is the best way to upload whole DIrectories/Folders/Files to server using c# coding?

推荐答案

您可以在C#中使用ftpwebclass的上传使用ftp文件夹
看看这个链接

You can use of ftpwebclass in C# for uploading a folder using ftp check out this link

这篇关于上传文件夹到服务器在C#Asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆