Called a web service to get weather report for a supplied zip. Works, but takes time. Thought I'd show an hourglass while waiting for the service to respond. Found a way to do it on win forms, but not web forms. Is this possible? New to web design & .NET.
Meanwhile I found an answer below in the ASP.NET forum in response to ChrisTheProgrammer's "Make the mouse pointer an hourglass". I tried it and it works. Also, after the click event of the button that calls the web service is complete, the pointer automatically goes back to normal! I don't understand that, but it works.
millerk (Programmer) Jul 15, 2002
I have a button named cmdReport. In my aspx.vb file's Page_Load sub I put this :
cmdReport.Attributes("onclick" = "javascript: hourglass();"
Then in the <HEAD> of my .aspx file I put this:
<script language="javascript">
function hourglass()
{
document.body.style.cursor = "wait";
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.