2009-03-05 61 views
1

我有五個DropDownList s與CascadingDropDown AJAX控件連接在一起。當它在本地運行時,它們工作正常。但是在互聯網上的生產服務器上運行時,每一次我選擇新項目時出現此錯誤:CascadingDropDown錯誤 - '選項'爲空或不是對象

'options' is null or not an object 

調試,這表明導致了它的功能(這是JS從CascadingDropDown控制):

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

在此先感謝。

+0

var e = this.get_element();在你執行這個之後,是否爲null? – 2009-03-06 11:32:50

回答

3

確保下拉列表中有autopostback =「false」.autopostback =「true」對我造成了問題。 - Fahad

相關問題