开发者

ASP menu is not showing

开发者 https://www.devze.com 2023-02-02 06:01 出处:网络
My web application menu isn\'t showing in any browser I use to test. I looked around and ch开发者_运维百科ecked out if it wasn\'t the z-index bug mentioned here, that seems to have caused some troubl

My web application menu isn't showing in any browser I use to test.

I looked around and ch开发者_运维百科ecked out if it wasn't the z-index bug mentioned here, 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


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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号