Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/04/2010, 13:22
Avatar de jsrc1990
jsrc1990
 
Fecha de Ingreso: enero-2009
Mensajes: 95
Antigüedad: 15 años, 3 meses
Puntos: 0
De acuerdo Respuesta: Botones en datalist

Código ASP:
Ver original
  1. Protected Sub TuDatalist_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles TuDatalist.ItemDataBound
  2. If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
  3. Dim TuBoton2 As Button = DirectCast(e.Item.FindControl("TuBoton"), Button)
  4. TuBoton2.Attributes.Add("onmouseover", "this.style.backgroundColor='yellow'")
  5. TuBoton2.Attributes.Add("onmouseout", "this.style.backgroundColor=''")
  6. End If
  7. End Sub

Espero haberte ayudado, Cuentanos.

Jsrc1990

Última edición por jsrc1990; 16/04/2010 a las 22:22