chido gracias por responder, pero ahora se me olvidar que mi image botton tiene un comandname..
se puede hacer esto en mi commandname ?? y asi se cargen los id de los dropdownlist
Private Sub save_carrito(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs )
if comandname ="addcar" then
Dim ninios as DropDownList= (CType(e.Item.FindControl("ninios"), DropDownList).SelectedItem.text)
Dim adultos as DropDownList =(CType(e.Item.FindControl("adultos"), DropDownList).SelectedItem.text)
Código:
commandname.Attributes.Add("onclick", "validardrop('" & ninios.UniqueID, adultos.UniqueID & "');return false;")
end sub...