如何使用jquery&上传或下载文件c#和Asp.net中的ajax [英] How to Upload or download a File With jquery & ajax in c# and Asp.net

查看:51
本文介绍了如何使用jquery&上传或下载文件c#和Asp.net中的ajax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我的朋友

我应该上传和下载ftp server.now中的许多文件为了加快工作,我想使用jquery和ajax技术。你可以帮帮我吗?

Hello my friend
i should to Upload and Download many file in a ftp server.now To speed up work i want use jquery and ajax technology. can you help me?

推荐答案

你好,



试试以下内容,



http:// stackoverflow。 com / questions / 166221 / how-can-i-upload-files-asynchronously-with-jquery [ ^ ]



http://stackoverflow.com/questions/4545311/how-to-download-a-file-by -jquery-ajax [ ^ ]
Hi,

Try the following,

http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery[^]

http://stackoverflow.com/questions/4545311/how-to-download-a-file-by-jquery-ajax[^]






a)要异步上传多个文件,请使用AsyncFileUpload Control of AjaxToolkit。



b)进行下载检查此链接 http:/ /johnculviner.com/post/2012/03/22/Ajax-like-feature-rich-file-downloads-with-jQuery-File-Download.aspx [ ^ ]



c)为了加快这个过程,你也可以使用并行处理。
Hi,

a) To upload multiple files asynchronously use "AsyncFileUpload Control of AjaxToolkit".

b) For download check this link "http://johnculviner.com/post/2012/03/22/Ajax-like-feature-rich-file-downloads-with-jQuery-File-Download.aspx[^]

c) To speed up the process you can also use parallel processing.


这个例子展示了一种上传文件的简单方法与进度条一起连接到服务器。



先决条件:

- 用于将文件保存在服务器上的http处理程序。

- 用于调用电话的ajax方法

- 用于显示进度的bootstrap进度条。





http://gilgh.com/article/Ajax_file_upload_with_progress_bar_and_asp_net

这可以帮到你
This example shows a simple way to uploading the file to the server along with the progress bar.

Prerequisites:
- http handler to save the file on the server.
- ajax method to make the post call
- bootstrap progress bar to show the progress.


http://gilgh.com/article/Ajax_file_upload_with_progress_bar_and_asp_net
This may help you


这篇关于如何使用jquery&上传或下载文件c#和Asp.net中的ajax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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