Show Links
Up
You should not read this page until after you have read the 'show images' page for the technique is essentially the same and is explained here only briefly.

Let's assume that your database contains some address-book type information including not only Family name, first name, phone number etc but also the person's web site address (URL). We'll assume that this It would be nice if the ASP pages could display the URL not just as text but as a hyperlink...

You may have noticed that in HTML a hyperlink has a form like this:

<a href="http://yahoo.com">yahoo.com</a>

Note that the 'http://' cannot be omitted from the hyperlink URL but we can incorporate into the HTML or ASP code so that it does not have to be included in the database.

Assuming that the URL has been stored into the database field called text8 then the following code could be incorporated into the HTML code of your web page:

<a href="http://<%=objRS("text8")%>"><%=objRS("text8")%></a>

or the following code could be incorporated into the ASP code on your page:

response.write "<a href=""http://" & objRS("text8") & """>" & objRS("text8") & "</a>"

Challenge

You ought to be able to figure out how to to make the email address text that you have stored in the field called text3 appear as a clickable link. The form for such a link is:

<a href="mailto:nwardnward.com">nwardnward.com</a>

Previous Up