第一次单击文件上传不起作用 [英] First time click on fileupload not working
本文介绍了第一次单击文件上传不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在updatepanel中使用fileupload控件.我添加了fileupload按钮来触发标记以进行完全回发.我还将该按钮添加到了
i am using fileupload control in updatepanel.I have added the fileupload button to trigger tag for full postback. i also added the button to
ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(UploadButton);
获取完整的回发.
现在的问题是,第一次单击后,上传按钮不起作用,从第二次单击开始,上传按钮正常工作.
for getting full postback.
Now the issue is , the upload button does not work the first its clicked, from 2nd time click onwards the upload button works properly.
how to solve this above issue.
推荐答案
请尝试避免在UpdatePanel中使用FileUpload控件,因为它涉及回发问题.请改用异步文件上载控件.您可以在此处异步文件上传 [
Try to avoid using FileUpload control inside UpdatePanel, as it involves post back problems with it. Use asynchronous file upload control instead. You can find a nice sample code here Asynchronous File Upload[^]
这篇关于第一次单击文件上传不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文