Forums

ASP

This topic is locked

.asp hyperlink question

Posted 18 Jul 2005 02:32:03
1
has voted
18 Jul 2005 02:32:03 billy jones posted:
I have a working .asp search function on my intranet (.asp page desiged in dreamweaver) which is linked to an Access 2003 .mdb database via a DSN-less connection. One of the fields on a table used to display results from the access database is entered as a hyperlink - eg google.co.uk. I want that hyperlink to be displayed in the results field on my .asp results page.

My question is - If go to the results page say in Internet Explorer can I have the results field eg Google.co.uk or whatever it is to be displayed as a hyperlink - thus letting me click on the link and take me there?

Replies

Replied 19 Jul 2005 18:38:53
19 Jul 2005 18:38:53 Erik Piisila replied:
Try This: (be sure to replace RecordsetName with the name of your recordset and FieldName with the name of the url field in your database table.) This is ASP | VBscript


<a href="<%=(RecordsetName.Fields.Item("FieldName".Value)%>" target="_blank"><%=(RecordsetName.Fields.Item("FieldName".Value)%></a>

Reply to this topic