Helper function problems

  • Thread starter Chumley the Walrus
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,085
Members
48,773
Latest member
Kaybee

Latest Threads

Top