Now a problem with the Menu in asp.net

Occasional Contributor

Hello and thanks in advance...

 

I have a site that I am making that has a menu attached to a site map. It seems to not be liking the designer because after I program the menu in the designer gui, it simply disappears. I wonder if this is a bug...? Here is my code...

 

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="HeaderBackground">

    </div>
    <div class="NavMenu">
        <asp:Menu ID="Menu1" class="NavMenuMenu" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" ItemWrap="True">
        </asp:Menu>
    
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
    
    </div>
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    <div class="Footer">
        
    </div>
    </form>
</body>
</html>

 

2021-12-06.png

 

So basically, the Menu disappeared behind the sitemapdatasource... 

 

Not sure what to do but it may be a bug if I am not mistaken.. Any ideas.. Thanks in advance...

 

Cr8tive.

0 Replies