I have this code on my backend page ...aspx.vb
Public Function filecheck(ByVal invno As String)
Dim strI As String
Dim filecount As Integer
For i As Integer = 1 To 10
strI = i
If strI.Length = 1 Then strI = "0" + i.ToString()
If (System.IO.File.Exists(Server.MapPath("/inv/" + invno + "/" + invno + "_" + strI + ".jpg"))) Then
filecount += 1
End If
Next
Return filecount
End Function
and on my front end page I have:
<%
Dim dv As Data.DataView = CType(sqldata.Select(DataSourceSelectArguments.Empty), Data.DataView)
Dim ae As String = "</a>"
Dim count As Integer = filecheck(invno)
Response.Write(count)
For Each dr As Data.DataRow In dv.Table.Rows
%>
as well as other stuff of course, anyway, I am getting a count of 0, when I know that there are images in the folder /inv/ but I can not see what I am missing that I keep getting a 0 count.
...
Go to the complete details ...