Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > trouble with dynamic display levels on menu

Reply
Thread Tools

trouble with dynamic display levels on menu

 
 
Jeff
Guest
Posts: n/a
 
      06-06-2009
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>


 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a
 
      06-08-2009

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

"Jeff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about menu and display levels Jeff ASP .Net 1 04-09-2009 01:49 PM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 ASP .Net 1 01-11-2007 03:30 AM
(2.0) Multiple horizontal menu levels Jeppe Jespersen ASP .Net 3 06-14-2006 10:38 AM
Dynamic Menu Only displays 3 levels Bishop ASP .Net 0 04-16-2006 10:38 PM
Dynamic catalog with unlimited category levels? Travis Pupkin ASP General 5 09-22-2004 10:14 PM



Advertisments