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

'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。

提前致谢。

有帮助吗?

解决方案

确保下拉列表中包含autopostback =&quot; false&quot; .autopostback =&quot; true&quot;给我带来了问题。 - 法赫德

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top