473,320 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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, Laurent
Jul 26 '06 #1
2 1837
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:
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
Jul 26 '06 #2
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" <cl*****@discussions.microsoft.coma écrit dans le message de
news: AC**********************************@microsoft.com...
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:
>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

Jul 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sisnaz | last post by:
I'm working with 2005 Beta 2 and I'm sure this is a trivial question but for the life of me I can't figure out. I placed a menu navigation componet on my master page and defined the navigation...
4
by: Bart | last post by:
Hi, I have a menu on my master page. When I click on a menu item the state is reset after the page is redirected to the NavigateURL. How can fix this? Thanks Bart
7
by: tfsmag | last post by:
Has anyone had a problem with putting a menu control into a master page in .net 2.0? I have a problem where if i just drop a menu control on a regular page the menu works fine, the submenus work...
3
by: Joao Batista | last post by:
Hi all, I have a MasterPage with a menu, populated from a database, my problem now is when i chose an option , how can i pass (catch) the value to my products page??? Thanks Joao Batista
6
by: Ben Fidge | last post by:
Hi I've just created a new Master Page for my site and it uses the native Menu control. Strange behaviour is happening on page that use the master page. For some reason, the menu controls...
0
by: RAM | last post by:
Hello, I have created simple ASP.NET application with master page MIMStock.master: <%@ Master Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
1
by: tomix | last post by:
Hi, I have a master page which contains a menu,i would like to handle post back In the content pages(MenuItemClick event) I tried to do the following in the content page BaseLayout master...
2
by: n# | last post by:
I have an old existing website with a Header/ Left Hand Menu and a iframe as the main body content, adjacent to the menu. So for every click on the menu item, I used to load a aspx page on the...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.