views:

279

answers:

1

Hi there,

How can I add a custom mouse cursor (say cursors from C:\Windows\Cursors directory) onto a ASP.NET user control?

Thanks a bunch,

dattebayo...

+2  A: 

you can use the CSS cursor attribute (see this page for available cursors).

<asp:Button ID="Button1" runat="server" Text="Button" style="cursor: pointer" />

or

<style type="text/css">
  .PointerCursor
  {
    cursor: pointer;
  }
</style>

<asp:Button ID="Button1" runat="server" Text="Button" CssClass="PointerCursor" />
Bernhof