Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2012, 12:50
mrprogman
 
Fecha de Ingreso: junio-2011
Mensajes: 329
Antigüedad: 12 años, 10 meses
Puntos: 2
Pasar valor De CheckBox a Dropdownlist

Como puedo Pasar automaticamente un valor de checkbox a dropdownlist cuando se le de click al checkbox..se puede hacer eso..?

For Each row As GridViewRow In Products.Rows
Dim elcheckbox As CheckBox = DirectCast(row.FindControl("checkselect"), CheckBox)

If elcheckbox.Checked Then
'TextBox5.Text += String.Format("&user={0}", Products.DataKeys(row.RowIndex).Value)
DropDownList3.Text = "1"
DropDownList2.Text += String.Format("{0} <br>", Products.DataKeys(row.RowIndex).Value)
TextBox5.Text += String.Format("{0}", Products.DataKeys(row.RowIndex).Value)
ListBox1.Text += String.Format("{0}", Products.DataKeys(row.RowIndex).Value)

End If
Next