I have an SPMenuField control in my ASP.NET 2.0 Web Part. This SPMenuField is associated with a MenuTemplate which is inturn filled
in with MenuItemTemplate. My requirement is to fire a Button click event by clicking on of the Menu Items.
I found the there are three methods to handle clicks on the menu items
-
menuitem.ClientOnClickNavigationUrl - to navigate to a url
-
menuitem.ClientOnClickScript - to handle in javascript
-
menuitem.ClientOnClickUsingPostbackEventFromControl() method - need help on this one
I believe I can use the third approach to get an asp button's click event to fire on the click of the Menu Item. But just cannot figure out how to get it working in my web part. Please HELP
Thanks in advance