Forums
This topic is locked
External URL Link from an Image
Posted 26 Jan 2007 12:38:12
1
has voted
26 Jan 2007 12:38:12 David Taylor posted:
DWMX/ASP/AccessHi,
I want to use an image, drawn into my dynamic table from a recordset, as a link to an external web page or even to just create an text link to an external webpage from other data drawn in. I am familiar with the Master/Detail system but I suppose in my case I need the detail page to be an external web page. Anyone have any ideas on how to achieve this.
Thanks
DT
Replies
Replied 30 Jan 2007 19:19:46
30 Jan 2007 19:19:46 Javier Castro replied:
what you can do is add new field to your db for you link. and apply that link to you image or text or anything else. if you havemore questions explain how your table is and the code for your asp page. to see how it will go.
Replied 05 Feb 2007 03:31:02
05 Feb 2007 03:31:02 Charles Knight replied:
Not entirely sure I understand what your trying to do but the code below would create an image from your database and make it link to using data in another field.
<a href="<%=(rsRecordSet.Fields.Item("link-info-to-external-site".Value)%>" target="_blank"><img src="<%=(rsRecordSet.Fields.Item("image".Value)%>" border="0"></a>
DW8 | ASP | ACCESS
<a href="<%=(rsRecordSet.Fields.Item("link-info-to-external-site".Value)%>" target="_blank"><img src="<%=(rsRecordSet.Fields.Item("image".Value)%>" border="0"></a>
DW8 | ASP | ACCESS