I have a treeview in masterpage
from the treeview nodes i will navigate to different pages
if i click on treenode abcd it goes to abcd.aspx
then the back color of treenode abcd should be aqua like that if i click on which treenode that nodes backcolor should be changed and the
how to get that
John WiesePosted Jun 16, 2010, 4:08 PM
What you'll do in your click is check to see if currentHighlightID has a value and if so set the backcolor of that node to the default:
TreeView.Nodes[currentHighlightID].BackColor = defaultColor;
Then you can set the backcolor of the currently clicked upon node to your highlight color and save the ID of the current node to currentHighlightID.