Results 1 to 3 of 3

Thread: an hyperlink held in a database field

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    7

    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.
    Shirley

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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..

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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
  •  



Click Here to Expand Forum to Full Width