I have a menu that has items , this menu has some items that are present also in a treeview , i want to be able to expand the treeview node that has the same name as the one clicked in the menu , example , if the menu has an item named AIO and the treeview
has treenode named AIO i want to be able to expand it !!
by far , i an able to get the value of the menu item clicked , and i am using findnode as well but can not expand !! :(
below is my code :
MenuItem selectedItem = Menu1.SelectedItem;
Response.Write("You selected " +
Menu1.SelectedItem.Text + ".");
getvalue.Text = Menu1.SelectedItem.Text;
TreeNode searchNode = TreeView1.FindNode(getvalue.Text);
if (searchNode != null)
searchNode.Expand();
Go to the complete details ...