Forums
This topic is locked
hyperlink to a field
Posted 27 Sep 2001 23:33:34
1
has voted
27 Sep 2001 23:33:34 Alex Xander posted:
anyone know how can i set a hyperlink to a field (cause my field always contains text like "www.mypage.com) but when i go to a detail page it appear without link only the pure text i try with this code <a href=""><%=(detail.Fields.Item("Liga".Value)%></a> and the field appear with hyperlink but it link go to "" and i want the link redirected to the text contained on that fieldReplies
Replied 11 Oct 2001 23:51:11
11 Oct 2001 23:51:11 Bobby Jenkins replied:
Hey Alex,
If you still need some help with this, here it goes.
To use a field as a hyperlink, you of course have to have the link text in the field in you database. For it to show up on a page as a hyperlink you need to have two instances of the particular field.
For example:
<a href="<%=(detail.Fields.Item("Liga".Value)%>"><%=(detail.Fields.Item("Liga".Value)%></a>
You almost had it, but you needed the field name twice.
I hope this helps.
Bobby
If you still need some help with this, here it goes.
To use a field as a hyperlink, you of course have to have the link text in the field in you database. For it to show up on a page as a hyperlink you need to have two instances of the particular field.
For example:
<a href="<%=(detail.Fields.Item("Liga".Value)%>"><%=(detail.Fields.Item("Liga".Value)%></a>
You almost had it, but you needed the field name twice.
I hope this helps.
Bobby