Hi All,
I have a problem that I just cannot figure out, hope someone has an idea... I use IIS with xp pro for in office work. I have an asp page that display PO images, I used the following code to display a image if it is there. Any Ideas why it doesn't work???
<%dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject")
If filesys.FileExists("/images2/" & (RS.Fields.Item("Ponumber").Value) & "2.jpg") Then
Response.write "<H3></h3>"
Response.Write("Page 2")%>
<p><img src=<%=picvar2%></p><br>
<%End If%>
* picvar2 contains full path to image (tested it works)
* /images2/ is visible from the web site..
Outside the if ("/images2/" & (RS.Fields.Item("Ponumber").Value) & "2.jpg") works
and Outsite the if <img src=<%=picvar2%> Works
Short version the IF command just doesn't work, no error it just iqnores the entire if statment...
any ideas???
Thanks,
Ardan
End of Line
I have a problem that I just cannot figure out, hope someone has an idea... I use IIS with xp pro for in office work. I have an asp page that display PO images, I used the following code to display a image if it is there. Any Ideas why it doesn't work???
<%dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject")
If filesys.FileExists("/images2/" & (RS.Fields.Item("Ponumber").Value) & "2.jpg") Then
Response.write "<H3></h3>"
Response.Write("Page 2")%>
<p><img src=<%=picvar2%></p><br>
<%End If%>
* picvar2 contains full path to image (tested it works)
* /images2/ is visible from the web site..
Outside the if ("/images2/" & (RS.Fields.Item("Ponumber").Value) & "2.jpg") works
and Outsite the if <img src=<%=picvar2%> Works
Short version the IF command just doesn't work, no error it just iqnores the entire if statment...
any ideas???
Thanks,
Ardan
End of Line