Context Menu Problem - ISRes.axd

2 replies. Last post: November 23, 2009 11:29 AM by Mark Davison
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mark DavisonMember

Hi,

We have a major web application. In a couple of pages, when the user clicks a button, we show a context menu. This has worked for months until I recently upgraded the controls to the latest versions.

Now, the context menu is displayed and working properly on one page but is failing on the other page. The basic code in both pages (for showing the menu) is the same.

The error can be reproduced using this sample:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CMTest.aspx.vb" Inherits="System_CMTest" %>
<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop"  TagPrefix="ISWebDesktop"%>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    
    <script language="javascript" type="text/javascript">
    function ShowCM() {
     var wcm = ISGetObject("mnuUnits");
     wcm.Show();
    }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">

    <ISWebDesktop:WebContextMenu ID="mnuUnits" runat="server" ControlId="btnUnits">
       <Items>
           <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="true" Name="item0" Text="Hours" OnClick="SetUnits0"></ISWebDesktop:WebMenuItem>
           <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="false" Name="item1" Text="Days" OnClick="SetUnits1"></ISWebDesktop:WebMenuItem>
           <ISWebDesktop:WebMenuItem Type="CheckBox" Checked="false" Name="item2" Text="Full Time Equivalent (FTE)" OnClick="SetUnits2"></ISWebDesktop:WebMenuItem>
       </Items>
       <MenuStyleSettings BackgroundStripColor2="" BackgroundStripImage="o7_menu_strip.gif" MenuAnimation="True" MenuDropShadow="True" MenuWindowType="Normal" BackgroundStripWidth="26" IconCellWidth="25" HighlightMode="UseComplexImages">
        <DisabledItemStyle><Over BackColor="WhiteSmoke" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid" BorderWidth="1px" ForeColor="Gray"></Over><Normal Font-Names="segoe ui,tahoma" Font-Size="9pt" ForeColor="Silver"></Normal></DisabledItemStyle>
        <CheckedItemStyle><Over BackColor="#99CCFF" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Over><Normal BackColor="#E4EEF8" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Normal></CheckedItemStyle>
        <SeparatorStyle CustomRules="height: 2px; overflow: hidden"><BorderSettings><Top Color="#c5c5c5" Style="solid" Width="1px" /></BorderSettings></SeparatorStyle>
        <FrameStyle BackColor="White" BorderColor="#868686" BorderStyle="Solid" BorderWidth="1px">
        </FrameStyle><ItemStyle><Over BackColor="#C0DDFC" BaseStyle="Normal" BorderColor="#3399FF" BorderStyle="Solid" BorderWidth="1px"></Over><Normal Font-Names="segoe ui,tahoma" Font-Size="9pt"></Normal></ItemStyle>
        <ImagesSettings OverCenter="o7_menu_oc.gif" OverLeft="o7_menu_ol.gif" OverRight="o7_menu_or.gif" ActiveIconCell="o7_icon_active.gif" />
       </MenuStyleSettings>
   </ISWebDesktop:WebContextMenu>

    <div>
    <a href="#" onclick="ShowCM();" id="btnTest" runat="server">Test</a>
    
    </div>
    </form>
</body>
</html>

Why is this failing? The error is:

Invalid Argument

ISRes.axd Line 27. Char:659.

The URI information is ISRes.axd?F/ISCore.js/305000701.

I can get the page to work if I include a DOCTYPE declaration of transitional but this brings too many other problems.

 

Can anyone help with this?

 

Regards,

Mark

All times are GMT -5. The time now is 1:38 AM.
Previous Next