Hi,
How can I fire click event for menus child items? My menu is located in a
WebUserControl as follow:
<asp:Menu ID="mnuMain"
runat="server"
OnMenuItemClick="Menu1_MenuItemClick"
Orientation=Horizontal >
<Items>
<asp:MenuItem Text="Parent1" Value="Parent1" />
<asp:MenuItem Text="Parent2" Value="Parent2">
<asp:MenuItem Text="Parent2Child" Value="Parent2Child" />
</asp:MenuItem>
</Items>
</asp:Menu>
Using following, I can trap click events for Parent1 and Parent2, but I also
need to get Parent2Child click events. How can I do it?
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
switch (e.Item.Value)
{
case "Parent1":
////....
break;
case "Parent2":
////....
break;
}
}
Thanks for your time.
Regards
Med