当函数在asp.net中运行时,将光标更改为沙漏 [英] change the cursor to an hourglass while the function runs in asp.net
本文介绍了当函数在asp.net中运行时,将光标更改为沙漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望在函数运行时将光标更改为沙漏。请帮帮我。
谢谢
Sherin
Hi,
i want to change the cursor to an hourglass while the function runs. Please help me on this.
Thanks
Sherin
推荐答案
I认为你正在寻找像这样的东西:繁忙的鼠标光标在ASP.NET中加载页面时 [ ^ ]
问候..
I think you are looking for some thing like this one : busy mouse cursor when page loading in ASP.NET[^]
Regards..
这是你的回答< br $> b $ b
this is your answer
function yourFunc()
{
document.body.style.cursor = 'wait';
// do somthing !!!
}
我已经测试了这个解决方案。工作成功
I've tested this solution. Works successfully
string clickHandler = string.Format("document.body.style.cursor = 'wait'; this.value='Please wait...'; this.disabled = true; {0};",
this.ClientScript.GetPostBackEventReference(btnSave271Daily, string.Empty));
btnSave271Daily.Attributes.Add("onclick", clickHandler);
将其粘贴到PageLoad()
它在IE中完美运行。
感谢大家的帮助。
Paste this into PageLoad()
it is working perfectly in IE.
Thank you everyone for your helps.
这篇关于当函数在asp.net中运行时,将光标更改为沙漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文