satheesh babu

satheesh babu

  • NA
  • 128
  • 309k

Menu ,highlight the selected menu item & not clickable the current selected menu item

Aug 25 2011 2:45 AM
Hi all,

I am using master pages in my project, in master page I used menus to navigate the pages.

guide me on below issues.

1.If user click a menu item, I need to highlight the selected menu item. I mean need to display different from other menu items.

for this i used staticmenuitemstyle or dynamicmenuitemstyle, but not working.

2.I need to show the current selected menu item should be not clickable. I mean he can select other menu items except the current selected item.

for this I used the below code in Menu1_MenuItemClick event, but its not working

Menu1.Items[0].Enabled = false;
Menu1.Items[0].Selectable = false;
Menu1.Items[0].NavigateUrl = "";
Menu1.DisappearAfter = 0;

Please guide me on these two issues

Answers (2)