")
' Search this gallery until until find target photo
ind = 1
For Each filefound In MyFiles.files
If photo = ind Then
' display previous/next links
Response.Write("
<-- previous photo | ")
Response.Write((ind) & " of " & MyFiles.files.count & " | ")
Response.Write("
next photo -->" & vbCrLf)
' show image and skip the rest of the loop
Response.Write ("
 & "/" & Server.URLPathEncode(fileFound.Name) & ")
" & vbCrLf)
Exit For
End If
ind = ind + 1
Next
Response.Write("