Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 11:31 AM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default hyperlinks

hey there
i wanted to know one thing in ASP.i am fetching a record from database by doing this:
while not RS.eof
response.write "Course Id: " & RS("CourseId") & " <br> "
..
..
when my page displays the course id...i want a link to it added to it so that the user cliks on it to find detials abt the course id..can u tell me how i shud modify my code to display course id as a link??
thanks

 
Old August 18th, 2004, 12:36 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This should do:

while not RS.eof
response.write "Course Id: <a href='course.asp>'" & RS("CourseId") & "</a><br> "
..
..
 
Old August 18th, 2004, 12:43 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I think you mean:

response.write "Course Id: <a href='course.asp'>" & RS("CourseId") & "</a><br> "

Snib

<><
 
Old August 18th, 2004, 12:51 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

correct. I left out the closing quote accidentally.
 
Old August 19th, 2004, 09:17 AM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey thanks a million yehuda!!!!it worked!!!


Quote:
quote:Originally posted by Yehuda
 This should do:

while not RS.eof
response.write "Course Id: <a href='course.asp>'" & RS("CourseId") & "</a><br> "
..
..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinks stephens1982 HTML Code Clinic 1 August 29th, 2005 12:13 AM
hyperlinks in XSLT, please help. figit XSLT 1 May 6th, 2005 03:06 AM
Hyperlinks bahachin Excel VBA 2 February 13th, 2005 04:50 AM
hyperlinks style scrowler CSS Cascading Style Sheets 8 January 20th, 2005 09:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.