can any one tell me how to get the seleted submenuitem value of menu in textbox. like
foe eg this is my menu
Home Course

i want when i select science in menu control then textbox should me the Science. any one help me
i'm apppriciate. :)
thank you

Recommended Answers

All 2 Replies


<form id="form1" runat="server">
        <asp:Menu ID="Menu1" runat="server" onmenuitemclick="Menu1_MenuItemClick">
                <asp:MenuItem Text="A" Value="A">
                    <asp:MenuItem Text="B" Value="B">
                        <asp:MenuItem Text="C" Value="C"></asp:MenuItem>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>


protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
        Label1.Text = e.Item.Value;

thank you very mech that's i need :) :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.