After v9 Update WebMenuBar OnMenuItemClicked Handler Is Not Hit Consistently

17 replies. Last post: November 8, 2009 11:03 PM by James
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
A YousifMember

Our custom WebMenuBar control was working perfectly until we upgraded to v9.  Now we get a hit-or-miss on the event handler.

Our OnClick event is handeled on the client-side first to make sure any menus that require confirmation first are processed and prompt the user, but once the code gets to posting back [via cmd.OnPostBackClick()] the server-side Page_Load is hit, but our MenuItemClicked assigned handler does not in many cases now.

This is rendering our menus useless so we need help getting this fixed ASAP please.  Thank you.

[EDIT] Here's an example of the __EVENTTARGET and __EVENTARGUMENT on the post back.  By the way, is the __EVENTTARGET correct, i.e., is it supposed to have the : rather than the $ as the delimiter?

Page.Request["__EVENTTARGET"] value is
ctl00:ctl00:WebPaneManager1:ViewLeftSide:Content:Menu:menuCompanies:MainMenuBar

Page.Request["__EVENTARGUMENT"] value is
Type='CommandClick':Name='cmdMenuFind_2_188':ItemNameHierarchy='cmdFindBasic_2_185;'

[EDIT] I wanted to add that our control is an ASCX control that hosts the menu bar, i.e.,

<PRISM:PrismMenuBar ID="MainMenuBar" runat="server"
    OnCommandClick="MenuItemSelected">

Note that the MenuItemSelected handler does NOT get hit on some post backs.  We really need a fix for this fast.  Our custom menu bar control derives from ISNet.WebUI.WebDesktop.WebMenuBar.

All times are GMT -5. The time now is 10:33 AM.
Previous Next