1、通过显示字符Text
DropDownList.Items.FindByText("你的值").Selected=true;

如果在设置之前,进行过设置,应用如下格式:

DropDownList.ClearSelection();

DropDownList.Items.FindByText("你的值").Selected=true;

2、通过值Value

DropDownList.Items.FindByValue("你的值").Selected=true;

相关文章:

  • 2021-08-14
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案