Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2004, 11:31 AM
Registered User
 
Join Date: Aug 2004
Location: kent, oh, USA.
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

Reply With Quote
  #2 (permalink)  
Old August 18th, 2004, 12:36 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
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> "
..
..
Reply With Quote
  #3 (permalink)  
Old August 18th, 2004, 12:43 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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

<><
Reply With Quote
  #4 (permalink)  
Old August 18th, 2004, 12:51 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

correct. I left out the closing quote accidentally.
Reply With Quote
  #5 (permalink)  
Old August 19th, 2004, 09:17 AM
Registered User
 
Join Date: Aug 2004
Location: kent, oh, USA.
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> "
..
..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:11 AM.


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