如何清除asyncfileupload的文本框的值..? [英] how to clear the textbox value of asyncfileupload ..?

查看:166
本文介绍了如何清除asyncfileupload的文本框的值..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个按钮(用作MyButton)。 这个按钮modalpopup(MyPopup)中出现的OnClick一个asyncfileupload AJAX控件,OK按钮和取消按钮。

There is one button(MyButton). OnClick of this button a modalpopup(MyPopup) appears with one asyncfileupload ajax control, Ok button and Cancel button.

的asyncfileupload功能浏览功能工作正常,没有问题。 但是,回传后,如果我再次点击用作MyButton,弹出与出现在asyncfileupload控件的文本框中的previous路径。

The browse functionality of the asyncfileupload functionality is working fine, No problem. But after postback, if I click the MyButton again, the popup appearing with the previous path in the asyncfileupload control's textbox.

如何清除它...!

在此先感谢。

推荐答案

无建议方式为我工作。 现在的问题是不特定于 AsyncFileUpload ,而在输入[type = file]。

None of the proposed ways worked for me. The problem is not specific to AsyncFileUpload, but to the input[type=file].

最后,我发现,我曾与JavaScript的方式:

Finally, I found a way that worked for me with javascript:

function uploadComplete(sender, args) {
    jQuery(sender.get_element()).find("input[type='file']")[0].form.reset();
}

这篇关于如何清除asyncfileupload的文本框的值..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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