如何在完成方法时显示和隐藏进度图像而不是完成事件? [英] How can i display and hide progress image on completion of methods and not complete event?

查看:71
本文介绍了如何在完成方法时显示和隐藏进度图像而不是完成事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有五个上传控件的网页表单,文件正以这种方式上传...









I have a web form with five upload controls and files are getting uploaded in this way...




if (file1.ContentLength > 0)
            {

                //somecode to insert
            }







if (file2.ContentLength > 0)
            {

                //somecode to insert
            }










if (file3.ContentLength > 0)
            {

                //somecode to insert
            }









I想要显示一个gif图像或每个控件旁边的东西,只要它正在进行中。





I want to show a gif image or something next to every control which has a file as long as its in process.

推荐答案

在Jquery的帮助下,你可以实现这一点!!!



你需要拿一个div,进入那个div需要先用diplay:none调用img。



使用ajax调用时点击上传控件需要显示和隐藏div。



希望,你会明白的。随意询问是否有任何问题!!!!
With the help of Jquery, u can achieve this!!!

U need to take a div, into that div to need to call the img with diplay:none initially.

While using ajax call on click to upload control to need to show and hide the the div.

Hope, u will understand. Feel free to ask if any issues!!!!


这篇关于如何在完成方法时显示和隐藏进度图像而不是完成事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆