下拉式列表框里的提示性字段,例如,页面刚加载时,列表框里显示,“请选择XX”,这个是加在数据库里,还是怎么的?

解决方案 »

  1.   

    楼上的正确,你可以通过DropDownList1.Insert(0,"Please choose the item");
      

  2.   

    TO:
    Top  
     Teng_s2000(分涨的太慢,升星难啊!!) ( ) 信誉:100    
    怎么加不上啊
     DropDownListcounty5.Items.Insert(0,"请选择所在区域");
    列表框的数据是通过objectdatasource绑定的
      

  3.   

    this.DropDownList1.Items.Insert(0,new ListItem("请选择……","0"));
      

  4.   

    this.DropDownList1.DataBind();
    this.DropDownList1.Items.Insert(0,new ListItem("请选择……","0"));