如何使用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