俺听说.NET里面不像Win32里面那样要自己写函数就可以做到,是吗?

解决方案 »

  1.   

    DropDownList1.Items.FindByValue("AAA").Selected = true;
      

  2.   

    DropDownList1.Items.FindByValue(传递过来的DataValueField的值).Selected = true;
      

  3.   

    foreach(ListItem item in this.DropDownList1.Items)
    {
    if(int.Parse(item.Value)=="你要的value值")
    {
         break;
    }
    }
    返回的item就是选择的值。
      

  4.   

    DropDownList1.SelectedValue="你要的值";
      

  5.   

    经典回答:
    DropDownList1.Items.FindByValue(传递过来的DataValueField的值).Selected = true;
      

  6.   

    经典回答:
    DropDownList1.Items.FindByValue(传递过来的DataValueField的值).Selected = true;OK! 問題解決,散分!