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