本文介绍了使用JQuery或AjaxControltoolkit上传文件多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我,我需要将用户选择的文件上传到服务器.我已经完成了,但是问题是当我要上传文件时,页面将被刷新,而其他控件中的值将丢失. 因为基于上传响应,我还需要执行其他一些任务. 在此先感谢
Please help me, I need to Upload user selected files to the server. I have done it, but the problem is when I am going to upload file, page is going to be refreshed, and the values in other controls are lost. Because based on the upload response I have to do some other tasks. Thanks in advance
推荐答案据我所知,您仍然无法异步上传文件... For as far as I know, you''r still unable to upload files asynchronously...
使用更新面板和AjaxToolkit: 您是否看过此示例并尝试过: AsyncFileUpload演示 [ ^ ] 发布此消息后,以下文章应该会有所帮助: Ajax更新(通过更新面板)后对页面控件的JavaScript访问 [ ^ ] 或 使用jQuery: 您是否看过此示例并尝试过:教程:多文件上传魔术 [ ^ ] Ajax文件上传 [ ^ ] Using Update Panel & AjaxToolkit: Did you look at this sample and tried: AsyncFileUpload Demonstration[^] Post this, following article should help: JavaScript Access to Page Controls after Ajax Update (via Update Panel)[^] OR Using jQuery: Did you look at this sample and tried: Tutorials:Multiple File Upload Magic[^] Ajax File Upload[^]
更多推荐
使用JQuery或AjaxControltoolkit上传文件多个文件
发布评论