write some javascript to do it:string scriptString = "<script language='javascript'>document.all('DropDownList1').selectedIndex = -1;</" + "script>";
RegisterStartupScript("Startup", scriptString);

解决方案 »

  1.   

    where to put this javascript?
      

  2.   

    Why can't I do it in vb code?
      

  3.   

    after you did the data binding:if Not IsPostBack then
     '.......
     DropDownList1.DataBind()
     dim scriptString as string = "<script language='javascript'>document.all('DropDownList1').selectedIndex = -1;</" + "script>"
     RegisterStartupScript("Startup", scriptString)
    end if
      

  4.   

    DropDownList.Items.Insert(0,new ListItem("--请选择--","无")); 
    你可以在绑定后在第一行插入个“请选择”的字样。
      

  5.   

    DropDownList.SelectedIndex=-1;
    我就是用这个方法。
      

  6.   

    All worked except zx1970930's.