I have several listboxes I populate with stored procedures in my code but have not had any luck implementing the cursor to "wait' state while the stored procedure is working.
The app (coded in C# for asp page) utilizes nothing but stored procs for all data.
I have tried using:
btnGO.Attributes.Add("onclick", "document.body.style.cursor = 'wait';"); //placed in the page_ load() event and used this line of code below to change it back in my button_click event().
dgResults.Attributes.Add("OnDataBinding", "document.body.style.cursor = default;");
It does work but I cannot turn it off or turn it on again and it only goes back to normal default arrow when moving mouse over a list box. The only other way to get it back to default is to reload the page.
I would like to use this cursor change every time the buttoon_Clcik event fires as this will show the user that the app is doing something.
Thanks in advance