Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/06/2010, 16:32
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
Puntos: 3
Respuesta: SelectedIndexChanged dll

List, aqui el hecho

crear una funcion en javascript

function change_dato(datos)
{
document.getElementById("TextBox1").value =datos;
__doPostBack('daleaqui','OnClick'); esto como presionar el boton
}

en el DDL pais coloca esto

onchange="change_dato(this.options[this.selectedIndex].value);"

luego creas un boton en tu programa asp.net nombralo daleaqui y un textbox1

al primer DDL coloca False en autopostback muy importante si lo colocas True NO funciona

ejecuta tu programa

se muestra tu Gridview y le das al boton Edit del Gridview, aparecen los DDL (Pais,Region,clte)
en el DDL pais seleciona un pais y este llena el segundo DDL Region, haciendo esto en tu boton daleaqui

Dim cmbTypex As DropDownList = DirectCast(GridView1.Rows(I).FindControl("ddlregio n"), DropDownList)
cmbTypex.Items.Clear()
cmbTypex.DataSource = customer.Fetchregion(TextBox1.Text)
cmbTypex.DataBind()


listo mi hermano