Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to highlite the root node when i selecting the child node of that rootnode using asp.net.. I'm generating the menu using asp menu item that is generating the menu dynamically by hitting the db.
Posted
Comments
Sergey Alexandrovich Kryukov 16-Aug-12 2:43am    
What did you try so far?
--SA
AjayKumar Mittapelly 16-Aug-12 3:17am    
<staticselectedstyle cssclass="selected">

.selected{
background-color: #48ADE0;
}

bt it is working when i click on the root node ,the root node will be hilighting. Whereas when i click on the child node, root node is not hilighting.

My requirement is same as menu in this site.
Requirement Example:
when i hover the cursor to discussions tab the system is showing some submenus like ASP.net,c,c++ and etc as child nodes .when i selecting one of those submenus the discussions tab is hilighting with some color.
Sergey Alexandrovich Kryukov 16-Aug-12 13:06pm    
Please see my comment below ("This is just the static...").
--SA
Sergey Alexandrovich Kryukov 16-Aug-12 13:05pm    
This is just the static CSS property, cannot work on another element indirectly as you hoped for. Why would it be? You would need to code required behavior in JavaScript and modify the color when you generate a page in a callback on the server side, it depends. But it won't happen by itself no matter what CSS is that...
--SA
AjayKumar Mittapelly 17-Aug-12 1:27am    
Can u give the code for that.......

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900