1.DropDownlist.SelectedIndex=DropDownlist.Items.IndexOf(DropDownlist.Items.FindByValue(initValue));

2.  foreach(   ListItem   item   in   dropdownlist.Items   )  
  {  
      if   (   item.value   ==   ID   )  
      {  
          item.Selected   =   true;  
          break;  
      }  
  }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2021-09-21
  • 2021-05-31
  • 2022-01-13
  • 2021-10-25
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案