Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

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 ASP Free Forums Sponsor:
  #1  
Old June 21st, 2004, 10:55 AM
axe_man axe_man is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 31 axe_man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 42 m 42 sec
Reputation Power: 5
Cool Hyperlink asp text

I'm using the below code (which works).
Code:
<% 
Dim cnnCourse
Dim strDBPath 
Dim recCourse
strDBPath = Server.MapPath("database/source.mdb")
Set cnnCourse = Server.CreateObject("ADODB.Connection")
cnnCourse.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & strDBPath & "; PWD=sdfsfsdf"
'cnnCourse.Properties("Jet OLEDB:Database Password") = "d9i65o"
Set recCourse = Server.CreateObject("ADODB.Recordset")
recCourse.ActiveConnection = cnnCourse
recCourse.Source = "SELECT * FROM course_details"
recCourse.CursorType = 2
recCourse.CursorLocation = 2
recCourse.LockType = 3
recCourse.Open()
 
do
if recCourse.eof = false then
response.write(recCourse.Fields.Item("Course_title").Value) & "<br>"
recCourse.MoveNext()
end if
loop until recCourse.eof = true
recCourse.close
set recCourse = nothing
%>

This code prints all the record names that are contained in the table. I wish to incase the outputed text so it acts as a hyperlink when clicked on. How do i add the href code to the asp??

Thanks for any help

Last edited by axe_man : June 21st, 2004 at 10:58 AM. Reason: spelling

Reply With Quote
  #2  
Old June 21st, 2004, 11:00 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,760 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 5 h 22 m 16 sec
Reputation Power: 443
Code:
response.write("<a href='Page.asp?title=" & recCourse("Course_title") & "'>" & recCourse("Course_title") & "</a><br>")

Reply With Quote
  #3  
Old June 22nd, 2004, 05:56 AM
axe_man axe_man is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 31 axe_man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 42 m 42 sec
Reputation Power: 5
Thanx

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Hyperlink asp text


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 1 hosted by Hostway