Torna al Thread
Private Sub rptImmagini_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rptImmagini.ItemDataBound
'Preleva riferimento all'immagine
Dim img As Image = CType(e.Item.FindControl("imgFotoGestori"), Image)
'Riferimento alla riga utilizzata come sorgente dati
Dim drv As DataRowView = CType(e.Item.DataItem, DataRowView)
'Percorso dell'immagine
Dim strPath As String = drv("Foto").ToString()
If String.IsNullOrEmpty(strPath) Then
img.ImageUrl = "~/ImmagineVuota.jpg"
Else
img.ImageUrl = strPath
End If
End Sub