C
Chumley the Walrus
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
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