取消文件上传过程 [英] cancel fileupload process

查看:159
本文介绍了取消文件上传过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个屏幕,其中包含文件上载控件,上载按钮,取消按钮.当我从文件上载控件上载文件时,它正在处理中.
但是现在我想为取消"按钮编写代码,如果我单击取消"按钮,它应该取消处理文件.
我不知道该怎么做.
请任何人为此提供示例.

在此先感谢您.

Hi There,
I have created a screen which contains a file upload control ,upload button, cancel button.When i upload a file from fileupload control it is in processing.
But now I want to write code for cancel button ,if i click on the cancel button it should cancel processing the file .
I dont know how to do this.
Please can anyone provide an example for this.

Thanks in advance.

推荐答案

您是否正在执行异步文件上传?如果是,这可能会有所帮助- Sys.WebForms.PageRequestManager.abortPostBack方法 [
Are you doing an asynchronous file upload? If yes this might help - Sys.WebForms.PageRequestManager.abortPostBack Method[^].

I am not sure, but I think the upload will still be successful. The request is already sent. Any update due to the response should be stopped.[/Edit]


这篇关于取消文件上传过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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