问题描述
有一个按钮(用作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的文本框的值..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!