Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 29th, 2004, 03:37 AM
Authorized User
 
Join Date: Nov 2003
Location: , , United Kingdom.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Data from Oracle cursors k_kosaraju ADO.NET 2 January 27th, 2009 11:38 AM
Maximum number of cursors exceeded. zaheerabbas.sk Oracle 1 July 4th, 2008 04:41 AM
MYSQL and Cursors paulkholt MySQL 1 September 8th, 2004 08:25 AM
Changing cursors in onmouse??? events badgolfer ASP.NET 1.0 and 1.1 Basics 2 July 21st, 2004 08:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.