Protected Sub FormView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView1.DataBound
Dim Image1 As Image = CType(FormView1.FindControl("Image1"), Image)
If Not IsNothing(Image1) Then
Image1.ImageUrl = "~\TEstboard\Images\" & FormView1.DataItem("Photos")
Image1.Attributes.Add("OnClick", "window.open('images/" & FormView1.DataItem("Photos") & "')")
Image1.Style.Add("cursor", "hand")
'Image1.ToolTip = FormView1.DataItem("GalleryName")
End If
If
Image1= "" Then
Image1.Visible
End If
If Not IsNothing(Image1) and FormView1.DataItem("Photos") <> "" Then
Image1.ImageUrl = "~\TEstboard\Images\" & FormView1.DataItem("Photos")
Image1.Attributes.Add("OnClick", "window.open('images/" & FormView1.DataItem("Photos") & "')")
Image1.Style.Add("cursor", "hand")
'Image1.ToolTip = FormView1.DataItem("GalleryName")
End If
If
Image1= "" Then
Image1.Visible
End If