passing variables from one asp page to another.

C

Chieko Kuroda

Hello all,
I would like to learn the syntax for passing variables that I retreived from
a database to a second asp page. Currently, I'm using:

Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a href=
""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">"
How do I add more variables to my link: <a href = ...?
ie Nameofcandidate and InterviewDate

in this context:

' Iterate through times
While Not(RS.EOF)

' If date changes
If lDateID<>RS("DateID") Then

' If this is not first date, close out previous group
If lDateID>0 Then Response.write "</tr><tr><td
height=10><hr></td></tr>"

' Print header for new group
Response.write "<tr><td>Candidate Name: </td><td>" & "<B>" &
RS("NameofCandidate") & "</b>" & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview Date: </td><td>" &
RS("InterviewDate") & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview DateID: </td><td>" &
RS("DateID") & "</td></tr>" & vbcrlf
Response.write "<tr><td height=10></td></tr>" & vbcrlf
Response.write "<tr><td>Available time
Slots:&nbsp;&nbsp;</td><td>Start Time</td><td>End Time</td></tr>" & vbcrlf

' Update group
lDateID = RS("DateID")

End If

' Print detail
Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a
href= ""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">" & _
RS("StartTime") & "</a></td><td>" & RS("EndTime") & "</td></tr>"
& vbcrlf

Your help is appreciated,
Chieko
 
B

Bullschmidt

Or you could use session variables:

Session("UserLastName") = "Smith"

Response.Write Session("UserLastName")

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top