Monday, March 26, 2012

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

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, LaurentWhere 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.

"Laurent MICHEL" wrote:

Quote:

Originally Posted by

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
>
>
>


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

"clickon" <clickon@.discussions.microsoft.coma crit dans le message de
news: ACF3F51C-08A1-4EFB-81E7-8754EB88EE61@.microsoft.com...

Quote:

Originally Posted by

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.
>
"Laurent MICHEL" wrote:
>

Quote:

Originally Posted by

>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
>>
>>
>>

0 comments:

Post a Comment