hello all....
I have an Access database with a web address field and I'm trying to display that field on a different page, but my address field is not showing as a link, what's the way to show the address as a link??? thanks guys Tony
This is just a display part, without opening connection and recordset. Say, your table has a field, named "a_link". So your recordset(oRS) will contain this field:
<%
if oRS.bof and oRS.eof then
response.write("No records found..."
response.end
end if
do while not oRS.eof
%>
<a href='<%= oRS("a_link"%>'><%= oRS("a_link"%><br>
<%
oRS.movenext
loop
%>
This will display all links one under another. You can format output differently - say, in a table. It's up to you.
Basically "guest" is saying write the beginning of an HREF tag
<A HREF="
then write your stored URL
then close your HREF tag
">
Then write your link wording or the link again and then the </a> part.
You can use single quotes to surround the URL or if you want, double quotes. To write a double quote in a response.write string do "". Doing it twice will cause it to be written instead of closing your string. So:
response.write "<A HREF=""" & rs("URL" & """>" & rs("URL" & "</a>" Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.