[SOLVED] ASP Runner 9.7 - display image from URL Problem to display an image from an URL saved in a db field
Posted 03 July 2017 - 10:05 AM
Editor / Field Property in Datalist
I enter the following code in folder "View as" in section "Custom", which works fine:
strValue = "<img width=100 height=100 src = ""http://api.meleven.de/out/beldona/3c.fd.40.1828535MP.jpg"" >"
When I replace the fix URL with any kind of variable related
to the datafield "ProdImage" this does not work. Like:
strValue = "<img width=100 height=100 src = "".$data["ProdImage"]."" >"
Found a lot of "solutions" in the forum, but nothing worked...
Thanks for your support
Posted 04 July 2017 - 06:14 AM
It is a varchar(100) field in a SQL Server database and the field value is:
This field is part of the data we show in the table list (product data) and we
want to show the picture for which we only have the URL.
Thanks for the support
Posted 06 July 2017 - 04:40 AM
Check example #3 for instance.
After some more tries I found it:
strValue = "<img width=100 height=100 src='" & data("ProdImage")&"'>"