文件上传时如何阻止ui? [英] how to block ui while file upload ?
本文介绍了文件上传时如何阻止ui?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须使用asp.net中的文件上传控件将文件上传到服务器,但是此过程需要时间,因此我必须在进行此处理时阻止ui.请建议我该怎么做?
i have to upload a file to server using file upload control in asp.net ,but this process takes time so i have to block ui while this processing is going on .Please suggest me how to do it ?
推荐答案
,您可以使用jquery的"blockui"插件来实现.
有关更多信息,请参见
http://jquery.malsup.com/block/#overview [
you can achieve this using the jquery "blockui" plugin.
For more information refer
http://jquery.malsup.com/block/#overview[^]
Thanks
您可以通过仅使用jQuery和少量CSS来实现此目的.
这是一个有效的示例
You can achieve this by using only jQuery and a little bit of CSS.
Here''s a working example
检查这些博客
http://encosia.com/using-jquery-to-enhance-aspnet-ajax -progress-indication/ [ ^ ]
http://www.codingforums.com/archive/index.php/t-147023.html [^ ]
--NDK
check these blogs
http://encosia.com/using-jquery-to-enhance-aspnet-ajax-progress-indication/[^]
http://www.codingforums.com/archive/index.php/t-147023.html[^]
--NDK
这篇关于文件上传时如何阻止ui?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文