|
-
May 29th, 2001, 11:46 AM
#1
Thread Starter
New Member
an hyperlink held in a database field
Using vbscript - can I make a hyperlink that is held in a database active without having to add all the code to the field itself.
<a href="http://www.ocean-finance.co.uk/">Ocean Finance</a> this code works in the database field.
-
May 29th, 2001, 04:17 PM
#2
Frenzied Member
I think I see what your asking..
if you store:
<a href="http://www.ocean-finance.co.uk/">Ocean Finance</a>
in a db field, when you read that field in, wherever you want the link to be do:
<%=rs.Fields("MyLinkField")%>
The ASP server side processer will replace it with the data in the MyLinkField field from the recordset. You can even do it in a for or do loop.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 29th, 2001, 04:20 PM
#3
Frenzied Member
On the other hand, after a second read of your post, if you were to store say:
MyLinkField = "http://www.ocean-finance.co.uk"
MyDescField = "Ocean Finance"
You could then do something like this:
<a href=<%=rs.Fields("MyLinkFIeld")%>><%=rs.Fields("MyDescField")%></a>
Now, if I have just totally missed the point, please clarify what your trying to do :c)
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|