01.
Protected
Sub
FormView1_DataBound(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
FormView1.DataBound
02.
Dim
Image1
As
Image =
CType
(FormView1.FindControl(
"Image1"
), Image)
03.
If
Not
IsNothing(Image1)
Then
04.
Image1.ImageUrl =
"~\TEstboard\Images\" & FormView1.DataItem("
Photos")
05.
Image1.Attributes.Add(
"OnClick"
,
"window.open('images/"
& FormView1.DataItem(
"Photos"
) &
"')"
)
06.
Image1.Style.Add(
"cursor"
,
"hand"
)
07.
08.
End
If
09.
If
10.
Image1=
""
Then
11.
Image1.Visible
12.
End
If