Using ASPThumb and Sending Back from a Function/Sub

M

MU

Hello

I have a Repeater Control and I have an image in there where I am
passing the FileName from the dataset to a Shared Function/Sub in a
class which has ASPThumb in there to send back the binary(?) I'm
assuming as it has a method called .Send

However, I'm not sure how to go about it.

Repeater Control statement
<img src="images/photos/<
%#ClassName.ShowProductThumbnail(Container.DataItem("Filename"))%>"
alt="<%#Container.DataItem("Title")%>" />

Class
Shared Function ShowProductThumbnail(ByVal strFileName As String)
As Image
Dim ProductThumb As Object
ProductThumb = CreateObject("briz.AspThumb")
Some code here for opening the file, don't need help with
that, more the .Send and how to use it in a class
Return ProductThumb.Send
End Function

Any help would be awesome to try and get this to work!
Thanks
MU
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top