Click here to Skip to main content
14,927,434 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hey Everyone,

I have a navigation menu with a navigation URL and I am trying to add a popup message when the menu item is clicked. Please help. I have tried to register a MenuClickEvent but it is located on a master page and is not firing.

Menu
Posted
Comments
Azee 11-Oct-13 15:18pm
   
Please post the relevant code.
bobb024 11-Oct-13 15:24pm
   
<asp:ContentPlaceHolder ID="contentMenu" runat="server">
<div class="hideSkiplink">
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal" Font-Size="Smaller" OnMenuItemClick="NavigationMenu_MenuItemClick">
</div>



protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
{
//fire popup, but not getting hit
}
Sergey Alexandrovich Kryukov 11-Oct-13 16:29pm
   
Event cannot be "not firing", if a click happens, it happens. Your event handler may be missing, not added properly or not called by whatever reason.
Post some code sample using "Improve question" and format properly with "pre" tags, lang="XML".
—SA

1 solution

These 2 will definitely help you.One shows the way to trigger a popup on menu item click and other one shows navigation menu item click event.
Navigation Menu Item click[^]
trigger popup message from asp menu item[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900