什么叫静态的selected的值?
1楼的应该是对的吧!

解决方案 »

  1.   

    能否给出DropDownList得显示值,得到它的Selectedindex的值!!!!??
      

  2.   

    DropDownList.SelectedIndex=x
    用循环判断的办法,可以用DropDownList.item.count得到共有多少个Index,然后循环判断:DropDownList.item[i].text的值即可。
      

  3.   

    给你一个函数参考一下:
    private void SelectListItem(DropDownList list, string text)
    {
       try
       {
    list.Items.FindByText(text).Selected = true;
       }
       catch
       {
       }
    }
      

  4.   

    dropgo.SelectedIndex = dropgo.Items.IndexOf(dropgo.Items.FindByValue(CInt(labpage.Text)))