Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/10/2008, 01:36
nenure
 
Fecha de Ingreso: marzo-2008
Mensajes: 65
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: asp:HyperLinkField con boton

Hola, esto es lo que tengo en el aspx:

<asp:HyperLinkField HeaderText="INFORME" Text="Informe" DataNavigateUrlFields="COD_OFICINA,NOMBRE_OFICINA" DataNavigateUrlFormatString="OFICINASDetailsINFORM E.aspx?COD_OFICINA={0}&amp;NOMBRE_OFICINA={1}" />



y esto en el aspx.vb:

Public Sub setImageURL(ByVal src As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Dim myCells As TableCellCollection = e.Row.Cells
Dim planLink As HyperLink = DirectCast(myCells(myCells.Count - 1).Controls(0), HyperLink)
planLink.ImageUrl = "~/Imagenes/aspneticons/print_16x16.gif"
End If
End Sub