在按钮点击时显示沙漏问题 [英] Displaying Hour Glass on Button Click Problem

查看:79
本文介绍了在按钮点击时显示沙漏问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用ASP.NET/JAVASCRIPT/.NET时遇到困难.

我有一个服务器ASP.NET按钮.单击时,我执行了两个JavaScript验证.如果全部成功,则将光标设置为等待并禁用按钮(防止重新提交).将其放置在适当位置后,应用程序再也不会访问.NET中的文件隐藏代码.但是,如果我将光标线和按钮禁用线拉出,则可以正常工作,但允许用户根据需要重新提交.

建议或帮助会做.

关于

Hi There,

I''m having difficulties with ASP.NET / JAVASCRIPT / .NET.

I have a server ASP.NET button. On click I do a couple of JavaScript Validation. If all successfull, then I set the cursor to wait and disable the button (prevent resubmitting). Having this in place, the application never gets to the Code Behind File in .NET. However, if I take the cursor line and button disable line out, then it works fine, but allowing the user to resubmit as they wish.

An advise or help would do please.

Regards

推荐答案

在禁用控件时,您可以向后面的代码发出jQuery Ajax请求并访问该代码.

检查使用jQuery直接调用ASP.NET AJAX页面方法 [ ^ ]举一个例子.
At the time of disabling the controls, you can make a jQuery Ajax request to the code behind and access the code.

Check Using jQuery to directly call ASP.NET AJAX page methods[^] for one example.


这篇关于在按钮点击时显示沙漏问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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