May 04, 2012, 12:36 PM
[CLOSED] Error: 'theForm' is undefined
I activated Ext.NET 2.0 Beta in an asp.net project with AjaxToolkit Extension.
As I add the resource manager to the master page I cannot change page in my gridviews. I got the following error:
Microsoft JScript runtime error: 'theForm' is undefined
In Visual Studio debugger I can see that the error occurrs in WebResourceXXX.axd file, here: (see // <------------- )
As I add the resource manager to the master page I cannot change page in my gridviews. I got the following error:
Microsoft JScript runtime error: 'theForm' is undefined
In Visual Studio debugger I can see that the error occurrs in WebResourceXXX.axd file, here: (see // <------------- )
var __nonMSDOMBrowser = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
var __theFormPostData = "";
var __theFormPostCollection = new Array();
var __callbackTextTypes = /^(text|password|hidden|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;
function WebForm_InitCallback() {
var count = theForm.elements.length; // <-------------
var element;
for (var i = 0; i < count; i++) {
element = theForm.elements[i];
var tagName = element.tagName.toLowerCase();
if (tagName == "input") {
var type = element.type;
if ((__callbackTextTypes.test(type) || ((type == "checkbox" || type == "radio") && element.checked))
&& (element.id != "__EVENTVALIDATION")) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
else if (tagName == "select") {
var selectCount = element.options.length;
for (var j = 0; j < selectCount; j++) {
var selectChild = element.options[j];
if (selectChild.selected == true) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
else if (tagName == "textarea") {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
Last edited by Daniil; May 11, 2012 at 4:33 PM.
Reason: [CLOSED]