trouble with dynamic display levels on menu

Discussion in 'ASP .Net' started by Jeff, Jun 6, 2009.

  1. Jeff

    Jeff Guest

    hi

    asp.net 3.5

    Below you see the markup of my menu control, it's sitemap and web.config
    settings. The problem is that everything under Administrator isn't
    displayed. What happens when I hover the mouse over Administrator is that a
    white area is shown, this white area disappear after a couple of seconds
    despite my mouse is hovering over the white area....

    why isn't the menutiems under Administrator displayed?

    <asp:RoleGroup Roles="Administrator">
    <ContentTemplate>
    <asp:Menu ID="Menu1" runat="server" SkinID="menu"
    CssClass="menu"
    DataSourceID="smdsAdministrator"
    StaticDisplayLevels="2"
    Orientation="Horizontal">
    </asp:Menu>
    <asp:SiteMapDataSource ID="smdsAdministrator" runat="server"
    SiteMapProvider="Administrator" />
    </ContentTemplate>
    </asp:RoleGroup>

    <siteMap>
    <providers>
    <add name="Administrator" type="System.Web.XmlSiteMapProvider"
    siteMapFile="~/Sitemaps/Administrator.sitemap"/>
    <add name="Anonymous" type="System.Web.XmlSiteMapProvider"
    siteMapFile="~/Sitemaps/Anonymous.sitemap"/>
    <add name="Normal" type="System.Web.XmlSiteMapProvider"
    siteMapFile="~/Sitemaps/Normal.sitemap"/>
    </providers>
    </siteMap>

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="Home" description="">
    <siteMapNode url="~/Pages/Default1.aspx" title="test1" description=""
    />
    <siteMapNode url="~/Pages/Default2.aspx" title="test2" description=""
    />
    <siteMapNode url="~/Pages/Default3.aspx" title="test3 description="" />
    <siteMapNode url="~/Pages/Default4.aspx" title="test4 description="" />
    <siteMapNode url="~/Pages/Default5.aspx" title="test5" description=""
    />
    <siteMapNode url="~/Administration.aspx" title="Administration"
    description="" >
    <siteMapNode url="~/Admin/ManageTest1.aspx" title="Test1"
    description="" />
    <siteMapNode url="~/Admin/ManageTest2.aspx" title="Test2"
    description="" />
    <siteMapNode url="~/Admin/ManageTest3.aspx" title="Test3"
    description="" />
    <siteMapNode url="~/Admin/SqlExceptions.aspx" title="SqlExceptions"
    description="" />
    </siteMapNode>
    </siteMapNode>
    </siteMap>
     
    Jeff, Jun 6, 2009
    #1
    1. Advertising

  2. Jeff

    Jeff Guest

    I solved it by specifying a z-index value, as this was only a ie8 problem

    "Jeff" <> wrote in message
    news:...
    > hi
    >
    > asp.net 3.5
    >
    > Below you see the markup of my menu control, it's sitemap and web.config
    > settings. The problem is that everything under Administrator isn't
    > displayed. What happens when I hover the mouse over Administrator is that
    > a white area is shown, this white area disappear after a couple of seconds
    > despite my mouse is hovering over the white area....
    >
    > why isn't the menutiems under Administrator displayed?
    >
    > <asp:RoleGroup Roles="Administrator">
    > <ContentTemplate>
    > <asp:Menu ID="Menu1" runat="server" SkinID="menu"
    > CssClass="menu"
    > DataSourceID="smdsAdministrator"
    > StaticDisplayLevels="2"
    > Orientation="Horizontal">
    > </asp:Menu>
    > <asp:SiteMapDataSource ID="smdsAdministrator" runat="server"
    > SiteMapProvider="Administrator" />
    > </ContentTemplate>
    > </asp:RoleGroup>
    >
    > <siteMap>
    > <providers>
    > <add name="Administrator" type="System.Web.XmlSiteMapProvider"
    > siteMapFile="~/Sitemaps/Administrator.sitemap"/>
    > <add name="Anonymous" type="System.Web.XmlSiteMapProvider"
    > siteMapFile="~/Sitemaps/Anonymous.sitemap"/>
    > <add name="Normal" type="System.Web.XmlSiteMapProvider"
    > siteMapFile="~/Sitemaps/Normal.sitemap"/>
    > </providers>
    > </siteMap>
    >
    > <?xml version="1.0" encoding="utf-8" ?>
    > <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    > <siteMapNode url="~/Default.aspx" title="Home" description="">
    > <siteMapNode url="~/Pages/Default1.aspx" title="test1" description=""
    > />
    > <siteMapNode url="~/Pages/Default2.aspx" title="test2" description=""
    > />
    > <siteMapNode url="~/Pages/Default3.aspx" title="test3 description=""
    > />
    > <siteMapNode url="~/Pages/Default4.aspx" title="test4 description=""
    > />
    > <siteMapNode url="~/Pages/Default5.aspx" title="test5" description=""
    > />
    > <siteMapNode url="~/Administration.aspx" title="Administration"
    > description="" >
    > <siteMapNode url="~/Admin/ManageTest1.aspx" title="Test1"
    > description="" />
    > <siteMapNode url="~/Admin/ManageTest2.aspx" title="Test2"
    > description="" />
    > <siteMapNode url="~/Admin/ManageTest3.aspx" title="Test3"
    > description="" />
    > <siteMapNode url="~/Admin/SqlExceptions.aspx" title="SqlExceptions"
    > description="" />
    > </siteMapNode>
    > </siteMapNode>
    > </siteMap>
    >
     
    Jeff, Jun 8, 2009
    #2
    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. Bishop
    Replies:
    0
    Views:
    328
    Bishop
    Apr 16, 2006
  2. Jeppe Jespersen

    (2.0) Multiple horizontal menu levels

    Jeppe Jespersen, Jun 14, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    512
    Bruno Alexandre
    Jun 14, 2006
  3. empire5
    Replies:
    1
    Views:
    601
    =?Utf-8?B?UmVuZ2E=?=
    Jan 11, 2007
  4. Jeff
    Replies:
    1
    Views:
    252
  5. Travis Pupkin

    Dynamic catalog with unlimited category levels?

    Travis Pupkin, Sep 20, 2004, in forum: ASP General
    Replies:
    5
    Views:
    181
    Mark Schupp
    Sep 22, 2004
Loading...

Share This Page