Skip Navigation Links.

Dropdown component

Please select your fav team:

  

Your fav team is is:

 The code used is to create a selected event on the drop down component and then add the code:

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) 
{ 
  this.TextBox1.Text = this.DropDownList1.SelectedValue; 
}

It is important to do a postback on the control, so that the updates are reflected: