navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

ASP hyperlink

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> ASP hyperlink
Page: [1]
 
xterradane

 

Posts: 143
From: Mobile, AL USA
Status: offline

 
ASP hyperlink - 11/14/2001 18:26:00   
I have tried several ways to do a hyperlink using ASP and I can't get any of them to work. This is my latest try. Please help. I want the link to be the Job Title, but to pass the Job ID along to the next page.

This is my error message:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/webpub/JobSearchResults.asp, line 34

"<TD><a href= " "JobDetails.asp?ID=" & rsJob("ID") &" " ">" & rsJob("JobTitle") &"</a></TD>" &_
----------------^

This is the code:

Do While Not rsJob.EOF
Response.Write _
"<TD><a href= " "JobDetails.asp?ID=" & rsJob("ID") &" " ">" & rsJob("JobTitle") &"</a></TD>" &_
" <TD> " & rsJob("CompanyName") &"</TD>" &_
" <TD> " & rsJob("Location") &"</TD>" &_
" <TD> " & rsJob("LastUpdated") &"</TD>" &_
" </TR>"
rsJob.MoveNext
Loop
Response.Write "</TABLE>"
Else
Response.Write "Your search returned no records."
End If
rsJob.Close
Set rsJob = Nothing

Mojo

 

Posts: 2431
From: Chicago
Status: offline

 
RE: ASP hyperlink - 11/14/2001 19:31:00   
"<TD><a href= " "JobDetails.asp?ID=

You have some extra parentheses. Try removing the one I bolded. You also have some string concatenations that are not needed such as:

" <TD> " & rsJob("LastUpdated") &"</TD>" &_
" </TR>"

I would pull the last line to the above line like:
rsJob("LastUpdated") &"</TD></TR>"

It makes for better performance in a high hit site.

Joe


(in reply to xterradane)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> ASP hyperlink
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts