Formatting a link as a link

Results 1 to 3 of 3

Thread: Formatting a link as a link

  1. #1
    Henk Guest

    Default Formatting a link as a link

    I got a database that contains text, within the text there are links like, but when I query it from the database and display it in ASP it&#039;s showed as plaintext.<BR><BR>How can I let it appear as a "real" link?<BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Formatting a link as a link

    Henk,<BR><BR>Look into using a regular expression on the text you get from the database.<BR><BR>Basically you need to change "" into "&#060;a href=&#039;;&#062;;/a&#062;".<BR><BR>I&#039;m not sure on the syntax using VBScript though. I&#039;ve only ever used regular expressions in Perl and JavaScript...<BR><BR>If you search for "http:" and then take everything between there and a space, and then place it into the link correctly then it should work.<BR><BR>Sorry it&#039;s a bit vague.<BR><BR>Craig.

  3. #3
    Sven Cipido Guest

    Default RE: Formatting a link as a link

    Let&#039;s say your DB-fields calls rsLink("URL").<BR><BR>Then use this code :<BR>&#060;a href="&#060;%=rslink("URL")%&#062;"&#062;&#060;%=r sLink("URL")%&#062;&#060;/a&#062;<BR><BR>Hopes it helps you out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts