Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subin Alex
    wrote on last edited by
    #1

    [Message Deleted]

    B L 2 Replies Last reply
    0
    • S Subin Alex

      [Message Deleted]

      B Offline
      B Offline
      Baran M
      wrote on last edited by
      #2

      try this

      1 Reply Last reply
      0
      • S Subin Alex

        [Message Deleted]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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

        }
        

        }

        B 1 Reply Last reply
        0
        • L Lost User

          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

          }
          

          }

          B Offline
          B Offline
          Baran M
          wrote on last edited by
          #4

          Could you plz tell how to apply styles to menu ... ?

          L 1 Reply Last reply
          0
          • B Baran M

            Could you plz tell how to apply styles to menu ... ?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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>"; } }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups