1

我有五个s 与AJAX 控件DropDownList链接在一起。CascadingDropDown当它在本地运行时,它们工作正常。但是,当通过 Internet 在生产服务器上运行时,每次选择新项目时都会出现此错误:

'options' is null or not an object

调试它显示了导致它的函数(它是来自CascadingDropDown控件的 JS):

_clearItems : function() {
    /// <summary>
    /// Clear the items from the drop down
    /// </summary>
    /// <returns />

    var e = this.get_element();
    while (0 < e.options.length) {
        e.remove(0);
    }
},

有没有人对它为什么这样做有任何想法?我怀疑这是因为通过互联网加载项目需要更长的时间,并且不知何故这会影响控制?

我正在运行.NET 3.5。

提前致谢。

4

1 回答 1

3

确保下拉列表有 autopostback = "false".autopostback = "true" 对我造成了问题。- 法赫德

于 2009-08-28T15:03:41.760 回答