|
xterradane -> Passing Variables (1/28/2002 19:10:45)
|
I have a job search results page with a hyperlink to the job details page. The hyperlink ID is being passed correctly, however, the page will not display as if it does not exist. It is passing like: JobDetails.asp?ID=10. The code which is suppose to find the details and display them is below. I am assuming there is a problem with that portion of the code since it is passing the correct parameters. <% Dim strID strID = Request("ID") Dim rsJob Set rsJob= Server.CreateObject("ADODB.Recordset") strSQL= "SELECT EMail, Resume FROM Resume WHERE ID =" & strID & ";" rsJob.Open strSQL, objConn If Not rsJob.EOF Then Response.Write "<TABLE ALIGN=""CENTER"" BORDER=""0"" WIDTH=""95%"" CELLSPACING=""1"" CELLPADDING=""4"">" &_ "<p><TR><TD WIDTH=25%"><b>E mail:</b> " & rsJob("EMail") & "</TR>" &_ " <TR><b>Resume:</b> " & replace(rsJob("Resume"),chr(10),"<br>")& "</TR>" Else Response.Write "No resume details were found" End If Response.Write "</TABLE>" rsJob.close Set rsJob = Nothing %> Thanks.
|
|
|
|