hello All,
I have an question, I'm very newwhen it comes to ASP.net.
I am building an site where I want to check on the existince of an image in an certain directory.
No I have some questions regarding that,
I have an function
How is it possible to call thefunction in an If then statement ?
I have an line between my code saying:
But now I got an error saying "Expression expected" under the # from the Eval. Can anyone tell me how I can achieve the whish to check on the file existance using the function en gettin the variable of #Eval("PartNumb er") ?
Thank you in advance!!
Peter
I have an question, I'm very newwhen it comes to ASP.net.
I am building an site where I want to check on the existince of an image in an certain directory.
No I have some questions regarding that,
I have an function
Code:
Public Function FileExists(ByVal FileFullPath As String) _ As Boolean Dim f As New IO.FileInfo(FileFullPath) Return f.Exists End Function
I have an line between my code saying:
Code:
<% If FileExists(server.MapPath("articlesimages/Thumbs/" & #Eval("PartNumber") ".jpg") Then%>
Thank you in advance!!
Peter
Comment