Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/09/2004, 16:30
Avatar de Fher
Fher
 
Fecha de Ingreso: febrero-2003
Ubicación: En algun lugar de cancun
Mensajes: 384
Antigüedad: 21 años, 3 meses
Puntos: 0
nada no funciona adapte este codigo a datalist y me sigue saliendo el error
La cláusula Handles requiere una variable WithEvents

le pongo la fomosa clausa With y me marca erro
Sub MyDatalist_Delete(s As Object, e As DatalistCommandEventArgs ) handles MyDatalist.ItemDataBound
With

Dim btn As Button
If e.Item.ItemType = ListItemType.Item or e.Item.ItemType = ListItemType.AlternatingItem Then
btn = CType(e.Item.Cells(0).FindControl("cmddelete"), Button)
btn.Attributes.Add("onclick", "return confirmSubmit();")
End If
End with

__________________
solo firma

Última edición por Fher; 01/09/2004 a las 17:14