0
我有DropDownList控件上點擊一個LinkButton刷新。我收到「cannont有多個項目在DropDownList中選擇」錯誤。我曾嘗試過:我收到錯誤「不能有多個項目在DropDownList中選擇」在回發
ddlDiscipline.ClearSelection()
ddlDiscipline.SelectedIndex = ddlDiscipline.Items.IndexOf(ddlDiscipline.Items.FindByValue(thisApplicant.Discipline))
這沒有奏效。任何幫助,將不勝感激。
請張貼生成錯誤的確切代碼。 –
是否有可能在代碼中的其他位置再次設置選定的索引/值? –