Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 13th, 2006, 03:07 PM
Registered User
Join Date: Apr 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Href in a string

I have this line of code and it returns a value. I would like to return a href value instead like

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>")

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

Old April 14th, 2006, 11:05 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

Not sure if I have understood your objective properly and sorry to change you syntax style, anyhow

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

Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
REGEX to get href="#" monfu BOOK: Beginning Regular Expressions 2 July 24th, 2008 11:46 AM
Chapter 8, href and HRef (p. 285) roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 June 16th, 2008 10:40 AM
Help with HREF string bonekrusher XSLT 6 October 9th, 2006 05:33 AM
href darkhalf Javascript 2 November 20th, 2005 10:59 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.