Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

Change the mouse pointer

Hello,

I want to change the mouse pointer to hand, when the user clicks on an image button. After the mouse pointer is changed, some c# code should also be executed. How can I do this?

-- Praveen
0
praveenuni
Asked:
praveenuni
1 Solution
 
teejay21Commented:
You can do this in your codebehind or in the HTML.

Add this inside your <asp:image> tag
style="cursor:hand"

OR

controlname.attributes.add("style","cursor:hand")

where controlname is the name of the ID that you set your image to.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now