This topic is locked
[SOLVED]

 Help using image for file download link

9/14/2011 12:26:19 PM
ASPRunnerPro General questions
L
lnemer author

I have a field for uploading files. It is necessary for viewing on webpage to replace the text link with an image and have been trying to use the custom code field to make this work, However, only part of the path shows - omitting the actual file name. The first part of the path (members/files/) and the image make it into the URL but not the file name. Can someone please help me with what I am doing wrong? Thanks!



if strValue<>"" then

strValue = "<a href="" files/"" & strValue &><img src=""images/doc.gif""></a>"

end if
Sergey Kornilov admin 9/14/2011

Your quotes do not look right. Try this:

if strValue<>"" then

strValue = "<a href='files/" & strValue & "'><img src='images/doc.gif'></a>"

end if


If this doesn't help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

L
lnemer author 9/14/2011

Thank you Sergey,
That worked perfect!