[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Chumley

7/22/2004 12:11:00 AM

I'm trying to use a helper function inside a datalist control to
simply display an image if it exists:
<%
Function ShowIm(sItem as string)
If sItem <> "" Then
response.write <img height=13 width=16 _
src=((Container.DataItem("Imagesubprod1"))

End If
End Function
%>
<%# ShowIm(DataBinder.Eval(Container.DataItem, "Imagesubprod1"))%>

..gives me an error:Statement cannot appear within a method body. End
of method assumed. Not sure why this is happening.

thanx
Chum