Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/07/2009, 17:56
Avatar de cristalbird
cristalbird
 
Fecha de Ingreso: septiembre-2008
Mensajes: 5
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Ayuda con dropdownlist

Lo q pasa es q seguramente el ddl lo cargas en el Load y al seleccionar un dato, el vuelve a cargar el ddl entonces tienes que ponerlo dentro de un if... algo asi

If Not IsPostBack Then
dim dt as datatable=.......
Dropdownlist1.DataSource = dt
Dropdownlist1.DataTextField = "Nombre"
Dropdownlist1.DataValueField = "ID"
Dropdownlist1.DataBind()
End if