![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/02/2005, 07:56
|
![Avatar de Sayra](http://static.forosdelweb.com/customavatars/avatar82193_1.gif) | | | Fecha de Ingreso: diciembre-2004
Mensajes: 365
Antigüedad: 20 años, 2 meses Puntos: 1 | |
si en efecto, mas arriba tengo eso
protected System.Web.UI.WebControls.DropDownList DropDownList1;
protected System.Web.UI.WebControls.DropDownList Dropdownlist2;
protected System.Web.UI.WebControls.DropDownList Dropdownlist3;
Segun tus recomendaciones, la estructura me quedo en general asi
Private sub Page_Load(...) Handles MyBase.Load
If not IsPostBack
Cargo DropDownList1
End If
End Sub
Luego en
Private Sub DropDownList1_SelectedIndexChanged(byval sender as system.object, byval e as system.eventargs) handles drop1.selectedindexchanged
CargaDropdownlist2 where EstadoID=& drop1.selecteditem.value .
end sub
e gual para el drop3 pero el whwre es CiudadID=drop2selecteditem.value
Pero me da el mismo error de que BC30506: La cláusula Handles requiere una variable WithEvents.
y cuando le quito eso me corre la aplicacion peros solo me carga el combo1 y los otros dos no.
de verdad que esto me tiene al bordo de un colapso nervioso, yo que lo vea tan sencillo.
oye y gracias por todo |