title: Get the value of selected item in dropdownlist
body: <p>I added Item in <code>dropdownlist</code> and when I select the Item I added, it does not show up in <code>Label1</code>. Here is my code:</p>
  
  <p><strong>ASPX</strong></p>
  
  <pre><code>&lt;asp:Label ID="Label1" runat="server"&gt;&lt;/asp:Label&gt; 
  &lt;asp:DropDownList ID="drpOne" runat="server" AutoPostBack="true"&gt;
          &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p><strong>VB</strong></p>
  
  <pre><code>Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
  
      con.Open()
      If Not IsPostBack Then
          Dim Sql = "SELECT College FROM College"
          cmdAdd = New SqlDataAdapter(Sql, con)
          Dim ds As New DataSet()
          cmdAdd.Fill(ds)
  
          drpOne.DataSource = ds
          drpOne.DataTextField = "College"
          drpOne.DataValueField = "College"
          drpOne.DataBind()
          drpOne.Items.Insert(0, New ListItem("Please select College", ""))
          drpOne.SelectedItem.Value = "Please select College"
          drpOne.Items.Insert(0, New ListItem("All", ""))
   end if
  End Sub
  
  Protected Sub drpOne_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles drpOne.SelectedIndexChanged
      Label1.Text = drpOne.SelectedItem.Value
  End Sub
  </code></pre>