服务器正在处理时禁用按钮 [英] disabling button when server is processing

查看:93
本文介绍了服务器正在处理时禁用按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net应用程序中,我想在服务器处理请求时禁用所有服务器端按钮.怎么做?
在此先感谢

In my asp.net application I want to disable all server side buttons when server is processing a request. How to do it?
Thanks in advance

推荐答案

其中一种方法可能是使用Javascript.

每当任何控件触发服务器处理时,在那种情况下,在将请求发送到服务器之前,请使用Javascript并禁用所有服务器按钮.
处理完成后,您可以再次启用它们.

在这种情况下,使用jQuery会更简单.试试吧!
One of the ways to do it could be using Javascript.

Whenever any control triggers a server processing, at that event before sending the request to server, use Javascript and disable all the server buttons.
Once processing is complete you can enable them again.

Using jQuery would be more simplerer for such scenario. Try!


这篇关于服务器正在处理时禁用按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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