Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
web data grid - jscript error
posted

I have an ASP.NET web site application that I am converting from VS 2005 to VS 2010 (on Windows 7, IE8).  Everything seems to be working ok.  However, I wanted to try the WebDataGrid, and so I created a web page with only it on it.  When I go to the web page, it gives me an error: "Microsoft Jscript runtime error: 'theForm' is undefined" on this line (... scriptresource.axd...) (bold below).  when I create a new web site, things work ok.  Any ideas on how to get it working on the existing web site?


    /*********PROTECTED VIRTUAL METHODS********/
    _setupMarkerElements: function ()
    {

    },
    _addHandlers: function ()
    {
        /*TO BE IMPLEMENTED ON DERIVED CLASS*/
    },

    _addOtherHandlers: function ()
    {
        this._registerOtherHandlers([{ "submit": theForm, "beforeunload": window}]);
    },

 

the web page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test_infragistics.aspx.vb" Inherits="test_infragistics" %>

<%@ Register assembly="Infragistics4.Web.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.GridControls" tagprefix="ig" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="350px" Width="400px" />
    
    </div>
    </form>
</body>
</html>