Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Treenode color from anchor style

Reply
Thread Tools

Treenode color from anchor style

 
 
AAaron123
Guest
Posts: n/a
 
      08-07-2008
If you see this posted twice - sorry.
My news reader showed my first post as "No Longer Available"


I have the following in a .css file.

The treeNodes behave as if they were "a" elements.

I can't get them to not respond to the mouse!

The treenodes are in a content file and the link is in the master file.

If I change the color of a:hover it effects the treenodes so I know this is
actually what is controlling them.

Can you tell me why?

Thanks



TreeNode:link

{

color:Red;

}

TreeNode:visited {

color: Red;

}

TreeNode:hover {

color: Red;

}

TreeNode:active {

color: Red;

}




a:link {color:Red;

}

a:visited {

color: #C19B28;

}

a:hover {

text-decoration: underline;

color: #E6CD84;

}

a:active {

color: #C19B28;

}




 
Reply With Quote
 
 
 
 
AAaron123
Guest
Posts: n/a
 
      08-10-2008
On someone else's computer I saw my other post an done reply, which said the
nodes were "a" elements.
Below is the code except that Ive removed most of the text. These nodes
change color as the mouse hovers, etc.
<asp:TreeView ID="TreeView1" runat="server" NodeIndent="40" ShowLines="True"

ShowCheckBoxes="All" ShowExpandCollapse="False"

NodeStyle-ForeColor="Yellow" HoverNodeStyle-ForeColor="Yellow"

LeafNodeStyle-ForeColor="Yellow" ParentNodeStyle-ForeColor="Yellow"
RootNodeStyle-ForeColor="Yellow"

SelectedNodeStyle-ForeColor="Yellow">


<Nodes>

<asp:TreeNode Text="Rome???" >

<asp:TreeNode Text="Antioch " >

<asp:TreeNode Text="Brooklyn" >

<asp:TreeNode Text="Utica" ></asp:TreeNode>

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" Los Angeles" >

<asp:TreeNode Text="parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" dioceses..." >

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text=" New York " >

<asp:TreeNode Text="Syracuse" >

<asp:TreeNode Text=" the" ></asp:TreeNode>

<asp:TreeNode Text="parishs..." ></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="dioceses..." >

<asp:TreeNode Text=" parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="churches" >

<asp:TreeNode Text="Their parishs..." ></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

</Nodes>

</asp:TreeView>





"AAaron123" <(E-Mail Removed)> wrote in message
news:uDi1SbK%(E-Mail Removed)...
> If you see this posted twice - sorry.
> My news reader showed my first post as "No Longer Available"
>
>
> I have the following in a .css file.
>
> The treeNodes behave as if they were "a" elements.
>
> I can't get them to not respond to the mouse!
>
> The treenodes are in a content file and the link is in the master file.
>
> If I change the color of a:hover it effects the treenodes so I know this
> is
> actually what is controlling them.
>
> Can you tell me why?
>
> Thanks
>
>
>
> TreeNode:link
>
> {
>
> color:Red;
>
> }
>
> TreeNode:visited {
>
> color: Red;
>
> }
>
> TreeNode:hover {
>
> color: Red;
>
> }
>
> TreeNode:active {
>
> color: Red;
>
> }
>
>
>
>
> a:link {color:Red;
>
> }
>
> a:visited {
>
> color: #C19B28;
>
> }
>
> a:hover {
>
> text-decoration: underline;
>
> color: #E6CD84;
>
> }
>
> a:active {
>
> color: #C19B28;
>
> }
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
TreeNode colors come from anchor colors AAaron123 ASP .Net 1 08-07-2008 07:56 PM
Chang color of TreeNode Programmatically? rlueneberg@gmail.com ASP .Net Web Controls 0 05-24-2007 05:48 PM
what is equivalent of vb.net treenode.nextnode property in asp.net webcontrols.treenode tanya foster ASP .Net 3 05-18-2006 05:58 PM
how to convert color in style "#e6e6e6" to color object in vb.net moondaddy ASP .Net 3 04-28-2004 04:59 AM



Advertisments