ASP Runner Enterprise 9.7
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
Page 1 of 1
[SOLVED] ASP Runner 9.7 - display image from URL Problem to display an image from an URL saved in a db field
#3
Posted 04 July 2017 - 06:14 AM
admin, on 03 July 2017 - 05:58 PM, said:
ProdImage field, what kind of data it contains in the database?
It is a varchar(100) field in a SQL Server database and the field value is:
http://api.meleven.d...0.1828535MP.jpg
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
Dominic
#4
Posted 05 July 2017 - 01:18 PM
$data["ProdImage"] is a PHP syntax. You need to use ASP syntax (the same applies to concatenation).
https://xlinesoft.co...ings_custom.htm
Check example #3 for instance.
https://xlinesoft.co...ings_custom.htm
Check example #3 for instance.
Best regards,
Sergey Kornilov
Sergey Kornilov
#5
Posted 06 July 2017 - 04:40 AM
admin, on 05 July 2017 - 01:18 PM, said:
$data["ProdImage"] is a PHP syntax. You need to use ASP syntax (the same applies to concatenation).
https://xlinesoft.co...ings_custom.htm
Check example #3 for instance.
https://xlinesoft.co...ings_custom.htm
Check example #3 for instance.
After some more tries I found it:
strValue = "<img width=100 height=100 src='" & data("ProdImage")&"'>"
Thanks
Dominic
Page 1 of 1