Cannot have multiple items selected in a DropDownList

后端 未结 8 868
暖寄归人
暖寄归人 2020-12-30 19:11

I have two dropdownlist and a button. I used the breakpoint in my project and everything is working fine. But as soon I am getting out of the function of the button this is

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 19:46

    A previous answer mentions ddl.SelectedItem = "parameter"; as an option. However, SelectedItem is readonly.

    Using ddl.SelectedValue = "value" will also resolve the OP's error.

提交回复
热议问题