ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 8th, 2003, 03:30 AM
ozric ozric is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 ozric User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Recordset containing hyperlink

Hi, I am trying to create a page that contains a recordset and one of the fields to be a hyperlink to a download.

I am using an Access database and don't seem to be able to make the hyperlinks 'active'.

Any help would be greatly appreciated.

Thanks

Ozric

Reply With Quote
  #2  
Old April 8th, 2003, 03:51 AM
Wingman Wingman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Bavaria, Germany
Posts: 140 Wingman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 40 m 41 sec
Reputation Power: 6
Code:

' ...

While Not lRS.EOF
  ' ...
  Response.Write "<a href=""" & lRS.Fields("link").Value & """>" & lRS.Fields("link").Value & "</a>"
  ' ...
  lRS.MoveNext
Wend


is this what you want?

Reply With Quote
  #3  
Old April 8th, 2003, 05:21 AM
ozric ozric is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 ozric User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry Wingman, I'm a bit of a noob with ASP, here is the code I am dealing with:

While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td align="default" width="25%">
<%=(Recordset1.Fields.Item("Type").Value)%> </td>
<td align="default" width="25%"><%=(Recordset1.Fields.Item("Location").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend

The "Location" variable is the one that is to be a hyperlink, I can't see how I can apply the code that you have sent, can you (or anyone else) advise further please.

Thanks

Ozric

Last edited by ozric : April 8th, 2003 at 05:25 AM.

Reply With Quote
  #4  
Old April 8th, 2003, 05:50 AM
Wingman Wingman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Bavaria, Germany
Posts: 140 Wingman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 40 m 41 sec
Reputation Power: 6
Code:
<% While (NOT Recordset1.EOF)  %>
<tr> 
<td align="default" width="25%"> 
<%=(Recordset1.Fields.Item("Type").Value)%> </td>
  <td align="default" width="25%">
    <a href="<%=Recordset1.Fields.Item("Location").Value%>"><%=(Recordset1.Fields.Item("Location").Value)%></a>
  </td>
</tr>
<% 
  Recordset1.MoveNext
Wend
%>


This should do the trick

Reply With Quote
  #5  
Old April 8th, 2003, 06:02 AM
ozric ozric is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 ozric User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Lovely job

Thanks alot Wingman.

Ozric

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Recordset containing hyperlink


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway