[Message Deleted]
-
[Message Deleted]
-
[Message Deleted]
-
[Message Deleted]
If you are using asp.net menu control, then the MenuItemDataBound event is raised when a menu item is bound to data in a Menu control. Therefore you can access individual menu item in the menu control in this event and apply styles
void NavigationMenu_MenuItemDataBound(Object sender, MenuEventArgs e)
{
// Modify the text of the Home menu item by
// adding parenthesis around the text.
if (e.Item.Text == "Home")
{
//write your code to apply styles to 'Home' menu}
}
-
If you are using asp.net menu control, then the MenuItemDataBound event is raised when a menu item is bound to data in a Menu control. Therefore you can access individual menu item in the menu control in this event and apply styles
void NavigationMenu_MenuItemDataBound(Object sender, MenuEventArgs e)
{
// Modify the text of the Home menu item by
// adding parenthesis around the text.
if (e.Item.Text == "Home")
{
//write your code to apply styles to 'Home' menu}
}
-
The message seems to be deleted by the member. However to change menu item's font to bold, we can do like below protected void NavigationMenu_MenuItemDataBound(object sender, MenuEventArgs e) { if (e.Item.Text == "Home") { e.Item.Text = "<b>Home</b>"; } }