dropdowlist属性autopostback设为true;private void dropdownlist1_SelectedIndexChange(.....)
{
 label1.Text = dropdownlist1.selecteditem.text;
}

解决方案 »

  1.   

    Sub Selection_Change(sender as Object , e asEventArgs)Label.Text = DropList.SelectedItem.Value
    End SUb
      

  2.   

    dropdownlist的AutoPostBack设置为True
    双击dropdownlist写代码
    YourLabel.Text=YourDropdownList.SelectedItem.Text
      

  3.   

    Sub Selection_Change(sender as Object , e as EventArgs)Label.Text = DropList.SelectedItem.Value
    End SUb
      

  4.   

    Private Sub DropDownList2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList2.SelectedIndexChanged
            
            Label1.Text = CStr(DropDownList2.SelectedItem.Text)    End Sub 
    我的dropdownlist的AutoPostBack设置为True
    但还是不行呀!!!
      

  5.   

    private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
    {
         this.Label2.Text=this.DropDownList1.SelectedItem.Text;
    }
    dropdownlist的AutoPostBack设置为True
      

  6.   

    我照上面的改(不是搂主。)
     有点问题
    this.DropDownList1.SelectedItem.Text;这个 Text 即使改为Value   出现相类似的错误 
    F:\lwei\aaaa\WebForm3.aspx.cs(51): “int”并不包含对“Text”(value)的定义