Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO CREATE A MENU IN ASP.NET WITH C#?

Status
Not open for further replies.

stdennis

Technical User
Sep 16, 2009
1
US
Hi all,
I have created a menu inasp.net with c# like this...
<asp:Menu ID="Menu1" runat="server" StaticEnableDefaultPopOutImage="True" Orientation="Vertical" MaximumDynamicDisplayLevels="6" StaticDisplayLevels="1" OnMenuItemClick="Menu1_MenuItemClick" >
<Items>
<asp:MenuItem Text="File" >
<asp:MenuItem Text="New" >
<asp:MenuItem Text="Staff" NavigateUrl="~/Staff.aspx" ></asp:MenuItem>
<asp:MenuItem Text="Department" NavigateUrl="~/Department.aspx" ></asp:MenuItem>
<asp:MenuItem Text="ApplicationLog" NavigateUrl="~/ApplicationLog.aspx" ></asp:MenuItem>
<asp:MenuItem Text="Desktop" NavigateUrl="~/Desktop.aspx" ></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Open" >
<asp:MenuItem Text="Staff" Value="0"></asp:MenuItem>
<asp:MenuItem Text="Department" Value="1"></asp:MenuItem>
<asp:MenuItem Text="Application" Value="2"></asp:MenuItem>
<asp:MenuItem Text="Entity" Value="3"></asp:MenuItem>
<asp:MenuItem Text="EntityGroup" Value="4"></asp:MenuItem>
</asp:MenuItem>

</asp:MenuItem>

</Items>


</asp:Menu>
but I can see only File on my menu....I can't see any other child items by clicking on file...I am in a dilema...Waiting for your response

Thank you
 
not to fix your issue here but why not use a sitemap?

To go where no programmer has gone before.
 
When I hover over File it works. You must be having a javascript issue. Make sure javascrip is enabled on your machine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top