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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Menu with Multiview :confused:

Menu with Multiview :confused:

Scheduled Pinned Locked Moved ASP.NET
css
4 Posts 2 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.
  • D Offline
    D Offline
    dotnetcsharpdev
    wrote on last edited by
    #1

    Hi I have a Menu on my aspx page with 9 menuitems. A mUltiview aith 9 views is attached to this menu. Now I need to give a different colour to each item in Menu. the StaticMenuItemStyle is from a css. Can U plz. tell me how I can change colour od menu items which are attached to Multiview. Itz urgent.

    L 1 Reply Last reply
    0
    • D dotnetcsharpdev

      Hi I have a Menu on my aspx page with 9 menuitems. A mUltiview aith 9 views is attached to this menu. Now I need to give a different colour to each item in Menu. the StaticMenuItemStyle is from a css. Can U plz. tell me how I can change colour od menu items which are attached to Multiview. Itz urgent.

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

      If you want to change the color of a menu item, try the following workaround solution string menuText = YourMenuId.Items[0].Text; YourMenuId.Items[0].Text = "" + menuText + ""; you should have the following CSS style in your page .style1 { color: red; }

      D 1 Reply Last reply
      0
      • L Lost User

        If you want to change the color of a menu item, try the following workaround solution string menuText = YourMenuId.Items[0].Text; YourMenuId.Items[0].Text = "" + menuText + ""; you should have the following CSS style in your page .style1 { color: red; }

        D Offline
        D Offline
        dotnetcsharpdev
        wrote on last edited by
        #3

        Hi Ramesh, Thanx. I did try this code and even inserted the css in my css file.. doesn't seem to work.... I need to give different colours to 9 menuitems... totally baffled..

        L 1 Reply Last reply
        0
        • D dotnetcsharpdev

          Hi Ramesh, Thanx. I did try this code and even inserted the css in my css file.. doesn't seem to work.... I need to give different colours to 9 menuitems... totally baffled..

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

          Sorry the HTML content was interprented in my previous post. Try this. string menuText = YourMenuId.Items[0].Text; YourMenuId.Items[0].Text = "<span class='style1'>" + menuText + "<span>"; Put the following CSS style in your page .style1 { color: red; } </style>

          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