Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Helper function problems

Thread Tools

Helper function problems

Chumley the Walrus
Posts: n/a
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 _

End If
End Function
<%# ShowIm(DataBinder.Eval(Container.DataItem, "Imagesubprod1"))%> me an error:Statement cannot appear within a method body. End
of method assumed. Not sure why this is happening.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Helper function problems ASP .Net 3 07-07-2007 05:40 PM
What's the purpose of the helper cache and is there a way to just turn off helper cache-ing? kevin Ruby 1 07-21-2006 03:42 AM
Hyperlink Column & Helper Function not working D. Shane Fowlkes ASP .Net 1 11-19-2004 09:49 PM
Can't get subroutine/helper function to work in Datalist control Chumley the Walrus ASP .Net 2 06-15-2004 11:30 AM
Subroutine /helper function error Chumley the Walrus ASP .Net 2 06-10-2004 08:12 PM