That code is for a Windows Forms
TreeView
control. For an ASP.NET
TreeView
control, you need to use
CSS[
^] to change the cursor.
In your
.aspx
file:
<asp:TreeView runat="server" NodeStyle-CssClass="tree-node" ...
In your
.css
file:
.tree-node
{
cursor: default;
}