SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: ASP Links

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2004
    Location
    Milan, Italy
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP Links

    Hello.



    How can i make these data like links..so that when the user click on the email address or the web url it will take the user to the correct destination. The values come from a database.



    Code:
    <% if len(rs.Fields.Item("txtEmail").Value) > 0 Then %>
    <tr>
    <td><p class="text">e-mail : </p></td>
    <td width="344"><p class="text2"><%= rs.Fields.Item("txtEmail").Value %></p></td>
    </tr>
    <% End If %>


    Code:
    <% if len(rs.Fields.Item("txtWeb").Value) > 0 Then %>
    <tr>
    <td><p class="text">Web URL : </p></td>
    <td width="344"><p class="text2"><%= rs.Fields.Item("txtWeb").Value %></p></td>
    </tr>
    <% End If %>


    Thank you.
    dReAm

  2. #2
    Guru Bullschmidt's Avatar
    Join Date
    Apr 2002
    Location
    USA
    Posts
    524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    E-mail addresses:

    <a href="mailto%= rs.Fields.Item("txtEmail") %>"><%= rs.Fields.Item("txtEmail") %></a>

    Web addresses:

    <a href="<%= rs.Fields.Item("txtWeb") %>" target="new"><%= rs.Fields.Item("txtWeb") %></a>
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips


Bookmarks

Posting Permissions

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