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>
Hi,
I'm facing the same problem, and i don't find how to fix it. If you found a solution to your problem, please let me know.
sig2run
Hi Everyone,
I am not entirely sure what the problem could be. If someone wants to attach a running sample, I will take a look. I have seen another forum post where they got the page working by changing the id of the Form itself. Maybe try that?
regards,David Young