Subject: Href in a string
Posted By: seran128 Post Date: 4/13/2006 3:07:19 PM
I have this line of code and it returns a value. I would like to return a href value instead like

response.write("<table>")
do until rs.EOF
for each x in rs.Fields

response.write("<tr><td><b>" & x.name & "</b></td>")
response.write("<td>" & x.value & "</td></tr>")
next
rs.MoveNext
loop

it returns two values a link and a title from the database
I would like to display the Title of the field with a HREF to the link



Reply By: mat41 Reply Date: 4/14/2006 11:05:41 PM
Not sure if I have understood your objective properly and sorry to change you syntax style, anyhow

<table>
<%
do until rs.EOF
   for each x in rs.Fields %>
      <tr>
       <td><b><%= x.name %></b></td>
       <td><a href="<%= x.value %>" title="Click to ...">Click to....</a></td>
      </tr>
<%   next
   rs.MoveNext
loop%>
</table>

Wind is your friend
Matt

Go to topic 42951

Return to index page 313
Return to index page 312
Return to index page 311
Return to index page 310
Return to index page 309
Return to index page 308
Return to index page 307
Return to index page 306
Return to index page 305
Return to index page 304