Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-20-2005, 11:22 AM   PM User | #1
holty
Regular Coder

 
Join Date: Jun 2002
Location: UK
Posts: 262
Thanks: 0
Thanked 0 Times in 0 Posts
holty is an unknown quantity at this point
ASP Response link with params

Hi

I have got myself into a muddle here

All i am trying to do is to output a link with id's in the querystring. I am connecting to the database and pulling out the id's. When in my while loop I just want to output the links like so:

response.write ("<a href='/search/doc.asp?id=" & rs("DocID") & "sectionid=" & rs("categoryID")" '>rs("title")</a>")

Any ideas on what i have done wrong?

Thx

Last edited by holty; 09-20-2005 at 11:25 AM..
holty is offline   Reply With Quote
Old 09-20-2005, 11:38 AM   PM User | #2
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Code:
response.write ("<a href='/search/doc.asp?id=" & rs("DocID") & "&amp;sectionid=" & rs("categoryID")" '>rs("title")</a>")
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 09-20-2005, 12:31 PM   PM User | #3
holty
Regular Coder

 
Join Date: Jun 2002
Location: UK
Posts: 262
Thanks: 0
Thanked 0 Times in 0 Posts
holty is an unknown quantity at this point
Hi

Thanks for that - I still have an error though:

Expected ')'

response.write ("<a href='/search/doc.asp?id=" & rs("DocID") & "&amp;sectionid=" & rs("categoryID")" '>rs("title")</a>")

its expecting an ')' after here - rs("categoryID")"

any ideas?
holty is offline   Reply With Quote
Old 09-20-2005, 01:22 PM   PM User | #4
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
you could do with a nice editor that will color all the code in for you The errors become more obvious then. Just a matter or missing ampersands and speach marks
Code:
response.write ("<a href='/search/doc.asp?id=" & rs("DocID") & "&amp;sectionid=" & rs("categoryID")&" '>"&rs("title")&"</a>")
pasted it into dreamweaver to edit - should work now.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:56 AM.


Advertisement
Log in to turn off these ads.