Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #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?

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:52 PM.

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