Forum Discussion
AlphaCr8tive
Dec 07, 2021Copper Contributor
Now a problem with the Menu in asp.net
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>
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.
No RepliesBe the first to reply