0
DropDownList2はDropDownList3にデータをバインドするためにループしますが、エラーが発生します。 ":DataBinding: 'System.String '' DropDownList2を使用して別の値を選択すると、 'ALL'という名前のプロパティは含まれません。データソースのバインドを解除する方法:DataBinding: 'System.String'に 'ALL'という名前のプロパティが含まれていません
DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList3.DataSource = null;
DropDownList3.DataBind();
DropDownList3.Items.Clear();
//generic list
listDropDown3.Clear();
listDropDown3.Add("ALL");
DropDownList3.DataSource = listDropDown3;
DropDownList3.DataBind(); **** <<<=== pukes on DataBind() during second iteration:
" DataBinding: 'System.String' does not contain a property with the name 'ALL'."
}
助けてください、これは私をナットにしてくれます。