文件上传而不刷新页面 [英] file upload without making the page refresh
本文介绍了文件上传而不刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用更新面板中放置的asp.net的文件上载控件上载文件而不刷新页面.在此先感谢:)
How to upload a file using file upload control of asp.net placed within the update panel without making the page refresh. Thanks in advance :)
推荐答案
请参阅此链接
http://www.c-sharpcorner.com/UploadFile/prathore/FileUpload04292009022804804AM/FileUpload.aspx [ ^ ]
see this link
http://www.c-sharpcorner.com/UploadFile/prathore/FileUpload04292009022804AM/FileUpload.aspx[^]
此处: AjaxToolkit:AsyncFileUpload演示 [ ^ ]
在更新"面板中保留文件上传控件.在更新面板内使用触发器.内部触发器使用Postbacktriggers.将Postbacktriggers的控件ID赋予提交"按钮.
Keep Fileupload control in the in Update panel. Inside the update panel use triggers. Inside triggers use Postbacktriggers. Give control Id of the Postbacktriggers to the submit button.
这篇关于文件上传而不刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文