SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: ASP Links
-
Apr 15, 2005, 05:37 #1
- 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
-
Apr 25, 2005, 18:32 #2
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