Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6757167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:36:49+00:00 2026-05-26T13:36:49+00:00

This has been plaguing me for a while. I have a page in my

  • 0

This has been plaguing me for a while.

I have a page in my app that is a content page. The asp.net master page has a Menu Control.

This Menu Control is a user control that contains an object, and all of the event handling to bind the menu to various sitemap files based on the user.

The content page has a form with various forms and grids with update panels for putting together a complicated object. When completed the user submits the form and it should create the new object.

The problem is when updating one of the gridviews or submitting the form, I get an ‘Event’ is undefined error from a ScriptResource.axd file and it looks like the code is from the ASP menu control. Here is the context in which the error occurs. It breaks right after Menu_ClearInterval():

function Menu_HideItems(items) {
if (document.body.__oldOnClick) {
    document.body.onclick = document.body.__oldOnClick;
    document.body.__oldOnClick = null;
}
Menu_ClearInterval();

it breaks on this line:

if (!items || ((typeof(items.tagName) == "undefined") && (items instanceof Event))) {

    items = __rootMenuItem;
}
var table = items;
if ((typeof(table) == "undefined") || (table == null) || !table.tagName || (table.tagName.toLowerCase() != "table")) {
    table = WebForm_GetElementByTagName(table, "TABLE");
}
if ((typeof(table) == "undefined") || (table == null) || !table.tagName || (table.tagName.toLowerCase() != "table")) {
    return;
}
... rest of function
}

The context for the function has an items variable which looks like it contains event data, e.g.:

{ type: "click", target: { id: "btnAddItem" }, Methods: stopPropagation() }

Not sure if it matters. All other locals are undefined at this time.

Has anyone had a problem like this before? Any help is appreciated. This is a production problem and short of rewriting this to use pure jquery and ajax (not a quick fix) I’m not sure what else to do.

Thanks in advance for your help!

EDIT: To be clear, I’m not sure if this is the menu control causing the error, just that the surrounding code in the ScriptResource.axd file looks like menu code.

EDIT2 (Reproducable!): Ok, more details. This error occurs if I hover over the menu control after the page loads. If I don’t hover, it won’t occur and everything works fine. If I hover, it will error on the next ajax post. This page helped me figure that much out. Thoughts?

Menu Markup:

  <asp:Menu ID="mainMenu" runat="server" Orientation="Horizontal" OnMenuItemDataBound="mainMenu_MenuItemDataBound">
    <StaticMenuStyle CssClass="menu" />
    <StaticMenuItemStyle CssClass="menuItem" />
    <StaticSelectedStyle CssClass="menuSelected" />
    <StaticHoverStyle CssClass="menuHover" />     
    <DynamicMenuItemStyle CssClass="menuItem dMenuItem" />
    <DynamicSelectedStyle CssClass="menuSelected dMenuSelected" />
    <DynamicHoverStyle CssClass="menuHover dMenuHover" />            
    <LevelSubMenuStyles>
        <asp:SubMenuStyle CssClass="menu" />
        <asp:SubMenuStyle CssClass="subMenu" BackColor="#DDDDDD" />
    </LevelSubMenuStyles>
    <LevelMenuItemStyles>
        <asp:MenuItemStyle CssClass="menuItem" />
        <asp:MenuItemStyle CssClass="subMenuItem" />
    </LevelMenuItemStyles>
    <DataBindings> 
        <asp:MenuItemBinding DataMember="siteMapNode" 
             TextField="title" NavigateUrlField="url"  /> 
    </DataBindings> 
</asp:Menu>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:36:50+00:00Added an answer on May 26, 2026 at 1:36 pm

    I was not able to come up with a solution to this, so I ended up going with a different menu.

    The Queness Drop Down Menu was the simplest to implement with similar functionality and style.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a question that has been plaguing me for awhile. In Greasemonkey you
I have a reoccurring DNS problem that has been plaguing our users, occasionally causing
This has been bugging me for a while but when I databind a control
This has been something that's been bothering me for a while. How does one
This has been bugging me for a while and I'm hoping that one of
This has been killing me - I have a massive file that I need
This problem has been plaguing me for a little while, but I've think I've
This has been a problem that I haven't been able to figure out for
This has been asked before (question no. 308581) , but that particular question and
This has been a rather problematic issue on numerous occasions. We have alot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.