This topic is locked

concatenating hyperlink from hard coded + 2 fields

10/2/2005 1:10:41 PM
ASPRunnerPro General questions
orit author

I display the hyperlink manually (since the hyperlink definition in the wizard is not relative and because of another reason..), in the way you instructed me in the past:

 

Response.Write "<a href=""" & GetData(rs.Fields("HyperLinkField"), "") & """>HyperLinkedWord</a>"


In that similar way, I want to concatenate the path from:

  • Hard coded reference (a permanent "prefix"), for example (relative): /support/customers/
  • Field1: Field that holds additional part of the path: the non-permanent part of the path,for example: customer1/orders/
  • Field2: Field that holds the file name, for example: test.pdf



How can I code, that only the field of the file name (Field2) will be displayed and will be linked to the file that is located in the concatenated path.
Can you please assist?
Thanks

Sergey Kornilov admin 10/3/2005

Hi,
modify your code snippet this way:

Response.Write "<a href=""/support/customers/" & rs("Field1") & rs("Field2") & """>" & rs("Field2") & "</a>"