![]() |
#1 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() Howdy there folks!
I got the following piece of code in a table and would like to make whats inside the table into a link: Code:
<td><%=(rsDevices.Fields.Item("Device IP").Value)%></td> Code:
<td><a href = "<%=(rsDevices.Fields.Item("Device IP").Value)%>"><%=(rsDevices.Fields.Item("Device IP").Value)%></a> </td> Thanks for your help! |
![]() |
![]() |
![]() |
#2 |
![]() ![]() Join Date: Aug 2005
Location: Bali
Posts: 11,216
|
![]() what is the value? an example maybe.
__________________
If you're happy and you know it shake your meds! different style links examples Flight / Hotel search Free script download Bali Villas |
![]() |
![]() |
![]() |
#3 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() its a repeating record so the value is what is stored in the DB table an example would be one column has names and the other has email address I want to make email address table links but the way it is set up in DW is that its a repeating record so it goes through the DB till it runs out of rows to fill. The links are easy to create when just txt is put in with no asp. I just want to know how to make ASP code into links
|
![]() |
![]() |
![]() |
#4 |
![]() Join Date: Apr 2006
Posts: 313
|
![]() to open a link in a new window include target="_blank" inside the <a> tag
__________________
"i was going to say that!" - davidj 2008 |
![]() |
![]() |
![]() |
#5 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() right but if you have a record set with an <a> tag like the one i posted above
Code:
<td> <a href = "<%=(rsDevices.Fields.Item("Device IP").Value)%>"> <%=(rsDevices.Fields.Item("Device IP").Value)%></a> </td> |
![]() |
![]() |
![]() |
#6 |
![]() ![]() Join Date: Aug 2005
Location: Bali
Posts: 11,216
|
![]() which was why I asked what the values were
__________________
If you're happy and you know it shake your meds! different style links examples Flight / Hotel search Free script download Bali Villas |
![]() |
![]() |
![]() |
#7 |
![]() Join Date: Jun 2008
Location: Buffalo
Posts: 198
|
![]() Code:
<td><input type = "hidden" name="Device IP" value="<%=(rsDevices.Fields.Item("Device IP").Value)%>"/> <a href="http://<%=(rsDevices.Fields.Item("Device IP").Value)%>" target="_blank"> <%=(rsDevices.Fields.Item("Device IP").Value)%> </a> </td> Hope this helps the forum! |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|