Why no answer to the pb of catching a menuitemclik in a menu of a master page ?

  • Thread starter Thread starter Laurent MICHEL
  • Start date Start date
L

Laurent MICHEL

Hi, I can't catch the menuitemclick event on a master page.
Working with VS2005.net, having a Menu1_MenuItemClick method that handles
menuitemclick event and having declared in the aspx code the
onmenuitemclick="Menu1_MenuItemClick";
the event is not catch.
Why ? missing something ?

Regards, Laurent
 
Where are you putting the Menu1_MenuItemClick event handler method? If the
menu control is in a master page then the method needs to go in the
masterpage code behind page (or within the master page if you are doing
in-line coding). If you put it in the code behind of the content page then
it won't catch the event.
 
Hi clickon and thanks for your reply,
unfortunately the Menu1_MenuItemClick event handler is correctly on the
master page and nothing happened when i put a breakpoint inside the code in
this method.
Have you ever tried to put a menu on a master page and does-it works ?

Regards, Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top