Why is my asp.net menu not showing properly?

ASP menu is not showing

  • My web application menu isn't showing in any browser I use to test. I looked around and checked out if it wasn't the z-index bug mentioned http://stackoverflow.com/questions/3882319/asp-net-menu-control-horizontal-not-showing-sub-options, that seems to have caused some trouble to many people. I'm wondering if I'm doing something wrong: <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" /> </asp:Menu> I've got this as my SiteMap: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode title="Pagina"> <siteMapNode url="Default.aspx" title="Home" description="Página Inicial" /> <siteMapNode url="Generos.aspx" title="Géneros" description="Géneros" /> <siteMapNode url="Artistas.aspx" title="Artistas" description="Artistas" /> <siteMapNode url="Musicas.aspx" title="Musicas" description="Músicas" /> <siteMapNode title="Admin" roles="Administrador"> <siteMapNode url="Admin/Musicas.aspx" title="Musicas"/> </siteMapNode> </siteMapNode> </siteMap> Any suggestions about what might be wrong? TIA

  • Answer:

    this is a detailed how to on sitemap http://aspalliance.com/695. Your scenario is quite simple.. and it should work. are you sure you haven't specified any other default SiteMapProvider in web.config?

LauzPT at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

I hope this will help you, you are using local page so that you should give(~/) is must. url="~/Default.aspx".. url="~/Generos.aspx".. url="~/Artistas.aspx".. . now it show menu.

selladurai

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.