Custom Cursors
I need to change the cursor that displayed when I hover over an image button (ASP.NET). This is easy to do if you want to use one of the pre-defined cursors.
However, I need to change the cursor to use one of my own. I understand that this can be done in HTML/Javascript using the url() function. However, I need to do this from C# (i.e. from the server side) and need to be able to change it many times in response to certain events.
At the moment I am using the following to change to one of the pre-defined cursors:-
imgButton.Style["CURSOR"] = "crosshair";
and I need to do the equivalent of:-
imgButton.Style["CURSOR"] = "url('<myURL>')";
...only that doesn't work!
Does anyone know if this can be done?
|