This is my simple menu which I created using the following code..
<li><asp:LinkButton ID="lnkTesting" runat="server" PostBackUrl="~/Works/frmTesting.aspx">TESTING</asp:LinkButton></li>
<li><asp:LinkButton ID="LinkButton5" runat="server">STYLES</asp:LinkButton></li>
I haven't used <asp:Menu>
. My case is: I need to make the 5th menu "STYLES" to be loaded dynamically from the DB under the Menu "STYLES". Example would be like this ??
STYLES
Menu 1
Menu 1.1
Menu 1.1.1
Menu 1.1.2
Menu 1.2
Menu 1.2.1
Menu 1.3
Menu 2
Those Menus will be loaded from DB. Menu 1.1 should contains only its content. How can I achieve this? I tried to build the 1st sub menu item using the following code but it didn't worked ..
MenuItem add = new MenuItem("STYLES");
add.ChildItems.Add("Menu 1");
Any reference based on my needs pls????