hide root menu item (no sitemapdatasource used!)

Discussion in 'ASP .Net' started by Daves, Apr 21, 2006.

  1. Daves

    Daves Guest

    my 2.0 menu control has this root node which I want to hide

    normally the showrootnode property is set to false on the sitemapdatasource
    for the menu but I am actually populating it my self from a sql database and
    so I cannot figure out how to not display the root node only child nodes?
     
    Daves, Apr 21, 2006
    #1
    1. Advertising

  2. Try setting all the root node attributes to an empty string ( "").
    Peter

    --
    Co-founder, Eggheadcafe.com developer portal:
    http://www.eggheadcafe.com
    UnBlog:
    http://petesbloggerama.blogspot.com




    "Daves" wrote:

    > my 2.0 menu control has this root node which I want to hide
    >
    > normally the showrootnode property is set to false on the sitemapdatasource
    > for the menu but I am actually populating it my self from a sql database and
    > so I cannot figure out how to not display the root node only child nodes?
    >
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Apr 22, 2006
    #2
    1. Advertising

  3. Daves

    Daves Guest

    you mean the title property then?


    "Peter Bromberg [C# MVP]" <> wrote in message
    news:...
    > Try setting all the root node attributes to an empty string ( "").
    > Peter
    >
    > --
    > Co-founder, Eggheadcafe.com developer portal:
    > http://www.eggheadcafe.com
    > UnBlog:
    > http://petesbloggerama.blogspot.com
    >
    >
    >
    >
    > "Daves" wrote:
    >
    >> my 2.0 menu control has this root node which I want to hide
    >>
    >> normally the showrootnode property is set to false on the
    >> sitemapdatasource
    >> for the menu but I am actually populating it my self from a sql database
    >> and
    >> so I cannot figure out how to not display the root node only child nodes?
    >>
    >>
    >>
     
    Daves, Apr 22, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    3,121
    Girishmca
    Apr 25, 2008
  2. Replies:
    0
    Views:
    427
  3. mike
    Replies:
    2
    Views:
    619
  4. NvrBst

    ASP.NET Menu && SiteMapDataSource

    NvrBst, Jan 9, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    903
    NvrBst
    Jan 17, 2008
  5. va
    Replies:
    2
    Views:
    187
Loading...

Share This Page